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

msdefs.h

Go to the documentation of this file.
00001 /********************************************************************
00002        Copyright (c) 2001, Lee Patterson & Ant Works Software
00003        http://ssobjects.sourceforge.net
00004 
00005        filename :  msdefs.h
00006        author   :  Lee Patterson (lee@antws.com)
00007 *********************************************************************/
00008 
00009 #ifndef MS_DEFS
00010 #define MS_DEFS
00011 
00012 //Constants needed to be compatible with MSVC compiler
00013 
00014 #ifdef _WIN32
00015 # include <wtypes.h>
00016 #endif
00017 
00018 #ifdef DEBUG
00019 # ifndef _DEBUG
00020 #   define _DEBUG
00021 # endif
00022 # define __DEBUG
00023 #endif
00024 
00025 #ifndef _WIN32
00026 #include <sys/types.h>
00027 #endif
00028 
00029 //in wtypes.h, ms defines all there types. I' assuming that if one of the types
00030 //are defined, then they all will be defined. I can't test for each of them because 
00031 //some are just typedefed and doesn't have a define with it.
00032 
00033 #ifndef _DWORD_DEFINED
00034 #define _WORD_DEFINED
00035 #define _BYTE_DEFINED
00036 #define _DWORD_DEFINED
00037 typedef unsigned short WORD;
00038 typedef unsigned char BYTE;
00039 typedef unsigned long DWORD;
00040 typedef unsigned int UINT;
00041 typedef int BOOL;
00042 #endif 
00043 
00044 
00045 #ifndef TRUE
00046 # define TRUE true
00047 # define FALSE false
00048 #endif
00049 
00050 #ifdef _WIN32
00051 # define strcasecmp stricmp
00052 # define strncasecmp strnicmp
00053 # define vsnprintf _vsnprintf
00054 # define snprintf _snprintf
00055 #else
00056  typedef const char* LPCSTR;
00057  typedef char* LPSTR;
00058 #endif
00059 
00060 //MAXPATHLEN = 1024 (I didn't want to have to include glib.h)
00061 #ifndef _WIN32
00062 # ifndef _MAX_PATH
00063 #   define _MAX_PATH 1024
00064 # endif
00065 #endif
00066 
00067 #ifndef MAX_PATH
00068 #define MAX_PATH _MAX_PATH
00069 #endif
00070 
00071 #endif //MSDEFS

Generated on Thu Nov 8 12:39:25 2001 for SimpleServerObjects by doxygen1.2.11 written by Dimitri van Heesch, © 1997-2001