File: gdefs.h

package info (click to toggle)
treeviewx 0.5.1%2Bgit20100823.7e4d0e9-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,664 kB
  • sloc: cpp: 14,362; xml: 82; makefile: 66
file content (38 lines) | stat: -rwxr-xr-x 816 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef GDEFH
#define GDEFH

// Determine which platform we are building for



#if __BORLANDC__  // Borland specific options
	#define GPORT_WINDOWS 1 						// Windows
	#define GPORT_MAC	  0
#endif

#ifdef __MWERKS__ //  Metrowerks specific options
	#ifdef __INTEL__
		#define GPORT_WINDOWS 1 					// Windows
		#define GPORT_MAC	  0
  		#define __WIN32__							// MetroWerks only supports Win32
	#endif /* __INTEL__ */

	#ifdef macintosh								// MacOS
	#ifdef __WXMAC__
		#define USE_WXWINDOWS 1						// wxWindows
		#define GPORT_MAC     0	 					
		#define GPORT_WINDOWS 0
	#else	
		#define GPORT_MAC     1	 					// Macintosh
		#define GPORT_WINDOWS 0
	#endif
	#endif /* macintosh */
#endif

#ifdef __GNUC__
		#define GPORT_MAC     0	 					// Assume gcc implies X windows
		#define GPORT_WINDOWS 0
#endif

#endif