Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

/home/groups/n/no/noxwizard/cvs/src/osdefs.h

Go to the documentation of this file.
00001   /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
00002     || NoX-Wizard UO Server Emulator (NXW) [http://noxwizard.sourceforge.net]  ||
00003     ||                                                                         ||
00004     || This software is free software released under GPL2 license.             ||
00005     || You can find detailed license information in nox-wizard.cpp file.       ||
00006     ||                                                                         ||
00007     || For any question post to NoX-Wizard forums.                             ||
00008     -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
00009 
00030 #ifndef _OSDEFS_H
00031 #define _OSDEFS_H
00032 
00033 #if defined(__WATCOMC__)
00034 #  if defined(__WINDOWS__) || defined(__NT__)
00035 #    define _Windows
00036 #  endif
00037 #  ifdef __386__
00038 #    define __32BIT__
00039 #  endif
00040 #  if defined(_Windows) && defined(__32BIT__)
00041 #    define __WIN32__
00042 #  endif
00043 #elif defined(_MSC_VER)
00044 #  if defined(_WINDOWS) || defined(_WIN32)
00045 #    define _Windows
00046 #  endif
00047 #  ifdef _WIN32
00048 #    define __WIN32__
00049 #    define __32BIT__
00050 #  endif
00051 #endif
00052 
00053 /* Linux already has these */
00054 #if !defined BIG_ENDIAN
00055   #define BIG_ENDIAN 4321
00056 #endif
00057 #if !defined LITTLE_ENDIAN
00058   #define LITTLE_ENDIAN 1234
00059 #endif
00060 /* educated guess, BYTE_ORDER is undefined, i386 is common => little endian */
00061 #if !defined BYTE_ORDER
00062   #if defined UCLINUX
00063     #define BYTE_ORDER BIG_ENDIAN
00064   #else
00065     #define BYTE_ORDER LITTLE_ENDIAN
00066   #endif
00067 #endif
00068 
00069 
00070 #if defined(_Windows) && !defined(_INC_WINDOWS) && !defined(__WINDOWS_H) && !defined(NOWINDOWS)
00071 #  include <windows.h>
00072 #  include <windowsx.h>
00073 #endif
00074 
00075 #endif  /* _OSDEFS_H */
SourceForge.net Logo