This change breaks CYGWIN
May I ask what the reason was for changing
#ifdef WIN32
to
#ifdef _WIN32
is ???
Norman
>-----Original Message-----
>From: pli...@li...
>[mailto:pli...@li...]On Behalf Of M?rten
>Str?mberg
>Sent: Wednesday, March 20, 2002 12:30 PM
>To: pli...@li...
>Subject: [Plib-cvs] CVS: plib/src/util ul.h,1.35,1.36
>
>
>Update of /cvsroot/plib/plib/src/util
>In directory usw-pr-cvs1:/tmp/cvs-serv28128
>
>Modified Files:
> ul.h
>Log Message:
>Changed 'WIN32' to '_WIN32' in public header file.
>
>Index: ul.h
>===================================================================
>RCS file: /cvsroot/plib/plib/src/util/ul.h,v
>retrieving revision 1.35
>retrieving revision 1.36
>diff -u -d -r1.35 -r1.36
>--- ul.h 20 Mar 2002 15:48:23 -0000 1.35
>+++ ul.h 20 Mar 2002 17:30:11 -0000 1.36
>@@ -44,7 +44,7 @@
> #include <ctype.h>
> #include <assert.h>
>
>-#if defined (WIN32)
>+#if defined (_WIN32)
> # include <windows.h>
> # ifdef __CYGWIN__
> # include <unistd.h>
>@@ -124,7 +124,7 @@
> double last_time ;
> double max_delta ;
>
>-#ifdef WIN32
>+#ifdef _WIN32
> static double res ;
> static int perf_timer ;
> void initPerformanceTimer () ;
>@@ -138,7 +138,7 @@
>
> void reset ()
> {
>-#ifdef WIN32
>+#ifdef _WIN32
> initPerformanceTimer () ;
> #endif
> start = getRawTime () ;
>@@ -161,7 +161,7 @@
> {
> if ( seconds >= 0 )
> {
>-#ifdef WIN32
>+#ifdef _WIN32
> Sleep ( 1000 * seconds ) ;
> #else
> sleep ( seconds ) ;
>@@ -174,7 +174,7 @@
> {
> if ( milliseconds >= 0 )
> {
>-#ifdef WIN32
>+#ifdef _WIN32
> Sleep ( milliseconds ) ;
> #else
> usleep ( milliseconds * 1000 ) ;
>@@ -445,7 +445,7 @@
> */
>
>
>-#if defined (WIN32)
>+#if defined (_WIN32)
>
> class ulDynamicLibrary
> {
>@@ -612,7 +612,7 @@
> }
> } ;
>
>-#endif /* if defined(WIN32) */
>+#endif /* if defined(_WIN32) */
>
>
> class ulList
>
>
>_______________________________________________
>Plib-cvs mailing list
>Pli...@li...
>https://lists.sourceforge.net/lists/listinfo/plib-cvs
>
|