aboutsummaryrefslogtreecommitdiff
path: root/uname.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-06-14 23:38:05 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-06-14 23:38:05 +0000
commitea77d3ecd01ab62271e7ed84fd39b9a842835455 (patch)
treea488875f3bf9ea0422be6b3a0abf0333a13dcc28 /uname.c
parent840f19a55cf2e66cffaf296d5cccf72cb143e76f (diff)
ported [stat] to MinGW; #ifdef'ed out uname since there is no unam
e with MinGW; ifdefed out [usbhid] since libhid hasn't been ported to MinGW yet svn path=/trunk/externals/hcs/; revision=5238
Diffstat (limited to 'uname.c')
-rw-r--r--uname.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/uname.c b/uname.c
index 52a50b3..09b3854 100644
--- a/uname.c
+++ b/uname.c
@@ -23,18 +23,15 @@
/* */
/* --------------------------------------------------------------------------*/
+/* sadly, there is no uname in Windows, Cygwin has it tho */
+#ifndef _WIN32
+
#include <m_pd.h>
-#ifdef _WIN32
-#define _WIN32_WINNT 0x0400
-#include <windows.h>
-#include <stdio.h>
-#else
#include <sys/utsname.h>
#include <stdlib.h>
-#endif
-static char *version = "$Revision: 1.1 $";
+static char *version = "$Revision: 1.2 $";
t_int uname_instance_count;
@@ -114,3 +111,5 @@ void uname_setup(void)
}
+
+#endif /* NOT _WIN32 */