00001 /*---------------------------------------------------------------------------- 00002 SWORD 2000 - Software With Objects for Rapid Development 00003 Copyright (C) 2003 Eric NICOLAS 00004 ---------------------------------------------------------------------------- 00005 SWORD is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU Lesser General Public License as published by 00007 the Free Software Foundation; either version 2 of the License, or 00008 (at your option) any later version. 00009 00010 SWORD is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public License 00016 along with SWORD; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00018 --------------------------------------------------------------------------*/ 00019 #ifndef _SWORD_BASE_TYPES_ 00020 #define _SWORD_BASE_TYPES_ 00021 00022 // - Compiler and Operating system detection and adaptation 00023 // - Basic data types definition 00024 // - Standard headers inclusing 00025 00026 // --- Compiler detection and adaptation 00027 00028 #include "sword/config.h" 00029 00030 // --- ACE inclusion 00031 00032 // We always need ACE, and it must be included before any other includes 00033 // to avoid strange compilation problem 00034 #include "ace/OS.h" 00035 00036 // --- Platform detection and adaptation 00037 00038 #ifdef WIN32 00039 # define __STDC__ 1 00040 # define _NTSDK 00041 # define _WIN32_WINNT 0x0400 00042 # include <windows.h> 00043 00044 # define HAVE_LITTLEENDIAN 00045 # undef HAVE_BIGENDIAN 00046 00047 # define HAVE_STRICMP 00048 # define HAVE_STRNICMP 00049 00050 // Whenever you *compile* SWORD as a DLL, the symbol SWORDDLL_EXPORTS must be 00051 // defined (Visual C++ does it automatically for you when you create a SWORD 00052 // project which is of Windows DLL kind). 00053 00054 // Whenever you *use* SWORD as a DLL, the symbol SWORDDLL_IMPORTS must be defined. 00055 00056 # ifdef SWORDDLL_EXPORTS 00057 # define SWORDDECL __declspec(dllexport) 00058 # else 00059 # ifdef SWORDDLL_IMPORTS 00060 # define SWORDDECL __declspec(dllimport) 00061 # else 00062 # define SWORDDECL 00063 # endif 00064 # endif 00065 00066 #endif // WIN32 00067 00068 #ifdef POSIX 00069 # include <unistd.h> 00070 # include <string.h> 00071 #endif // POSIX 00072 00073 #endif // _SWORD_BASE_TYPES_
1.3-rc2