~sdg-team/swarm/trunk

« back to all changes in this revision

Viewing changes to src/misc/misc.h

  • Committer: mgd
  • Date: 2010-04-11 17:40:13 UTC
  • Revision ID: svn-v4:84d386b0-d280-4341-8980-c4cb7e1eb7a5:trunk/swarm:7930
Add NOGDI prior to windows.h inclusion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
/* Expected to be declared by stdlib.h are atoi, getenv, qsort. */
67
67
/* Expected to be declared by unistd.h are access, getpid, and sleep. */
68
68
#ifdef __MINGW32__
69
 
#define sleep(x) Sleep((x)*1000)
 
69
#define BOOL WINBOOL
 
70
/* Avoid defines like Rectangle which will cause problems in tkobjc */
 
71
#define NOGDI
 
72
#include <windows.h>
 
73
#undef BOOL
 
74
#define sleep(x) (Sleep((x)*1000),0)
70
75
#endif
71
76
 
72
77
/* Expected to be declared by time.h are clock, time, and gettimeofday. */