From ca39b0ed9bd12cc87a2634b208a522fdcef44408 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 9 Sep 2010 02:01:09 +0000 Subject: added TODO about how to do this on Windows svn path=/trunk/externals/hcs/; revision=14010 --- uname.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/uname.c b/uname.c index b6d998f..8fd2bfa 100644 --- a/uname.c +++ b/uname.c @@ -27,11 +27,17 @@ #ifndef _WIN32 #include - -#include #include -static char *version = "1.3"; +/* sadly, there is no uname in Windows, Cygwin has it tho */ +#ifdef _WIN32 +# include +# include +#else +# include +#endif + +static char *version = "1.4"; #define DEBUG(x) //#define DEBUG(x) x @@ -53,6 +59,10 @@ static void uname_output(t_uname* x) { DEBUG(post("uname_output");); +#ifdef _WIN32 +// TODO fake uname for Windows +// http://msdn.microsoft.com/en-us/library/ms724429(VS.85).aspx +#else struct utsname utsname_struct; t_atom uname_data[5]; @@ -69,6 +79,7 @@ static void uname_output(t_uname* x) 4, uname_data + 1); } +#endif /* _WIN32 */ } -- cgit v1.2.1