]> git.pond.sub.org Git - empserver/commitdiff
(__set_errno): Switch to _MSC_VER define instead of HAVE__SET_ERRNO
authorRon Koenderink <rkoenderink@yahoo.ca>
Mon, 29 Oct 2007 13:25:05 +0000 (13:25 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Mon, 29 Oct 2007 13:25:05 +0000 (13:25 +0000)
define.

(int32_t) [_WIN32]: Remove commented define..

src/lib/w32/random.h

index 2d08f0a4460a53347965ddafd362eb468be3e93f..5c2b00cdf22dc2b49c1ccb5edd5361039052bfb7 100644 (file)
@@ -1,7 +1,6 @@
 #include <io.h>
 
 typedef int int32_t;
-//#define int32_t int
 #define NULL    ((void *)0)
 struct random_data
 {
@@ -22,7 +21,7 @@ struct random_data
 #define __libc_lock_unlock(lock)
 #define __libc_lock_define_initialized(static1, lock)
 
-#ifdef HAVE__SET_ERRNO
+#ifdef _MSC_VER
 #define __set_errno(val) _set_errno((val))
 #else
 #define __set_errno(val) (errno = (val))