## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# csutil/win32/csconfig.h

    00001 /*
    00002     Copyright (C) 1998-2005 by Crystal Space Development Team
    00003
    00004     This library is free software; you can redistribute it and/or
    00005     modify it under the terms of the GNU Library General Public
    00006     License as published by the Free Software Foundation; either
    00007     version 2 of the License, or (at your option) any later version.
    00008
    00009     This library is distributed in the hope that it will be useful,
    00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00012     Library General Public License for more details.
    00013
    00014     You should have received a copy of the GNU Library General Public
    00015     License along with this library; if not, write to the Free
    00016     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    00017 */
    00018
    00019 /*
    00020   This header is used by CS_COMPILER_MSVC and CS_COMPILER_BCC for
    00021   CS_PLATFORM_WIN32 builds.  It is not used for CS_COMPILER_GCC builds since
    00022   GCC builds are performed using configuration information detected by the CS
    00023   configure script, which generates a suitable csconfig.h as output.
    00024 */
    00025 #ifndef __CS_WIN32_CSCONFIG_H__
    00026 #define __CS_WIN32_CSCONFIG_H__
    00027
    00028 #define CS_PACKAGE_NAME "crystalspace"
    00029
    00030 #define CS_PLATFORM_WIN32
    00031 #if !defined(CS_PLATFORM_NAME)
    00032 #  define CS_PLATFORM_NAME "Win32"
    00033 #endif
    00034
    00035 #define CS_PROCESSOR_X86
    00036 #if !defined(CS_PROCESSOR_NAME)
    00037 #  define CS_PROCESSOR_NAME "X86"
    00038 #endif
    00039
    00040 #if defined(__BORLANDC__)
    00041 #  define CS_COMPILER_BCC
    00042 #  if !defined(CS_COMPILER_NAME)
    00043 #    define CS_COMPILER_NAME "Borland"
    00044 #  endif
    00045 #  define CS_USE_CUSTOM_ISDIR
    00046 #elif defined(__MINGW32__) || defined(__CYGWIN32__)
    00047 #  define CS_COMPILER_GCC
    00048 #  if !defined(CS_COMPILER_NAME)
    00049 #    define CS_COMPILER_NAME "GCC"
    00050 #  endif
    00051 #else
    00052 #  define CS_COMPILER_MSVC
    00053 #  if !defined(CS_COMPILER_NAME)
    00054 #    define CS_COMPILER_NAME "VisualC"
    00055 #  endif
    00056 #endif
    00057
    00058 #if !defined (CS_COMPILER_GCC)
    00059 #  define CS_HAVE_MMX
    00060 #endif
    00061
    00062 #undef  CS_HAVE_SOCKLEN_T
    00063 #define CS_HAVE_MATH_H_FLOAT_FUNCS
    00064 #define CS_HAVE_CXX_KEYWORD_EXPLICIT
    00065 #define CS_HAVE_CXX_KEYWORD_TYPENAME
    00066 #define CS_HAVE_WCHAR_H
    00067 #define CS_HAVE_WCHAR_T
    00068 #define CS_HAVE_WCSLEN
    00069 #define CS_WCHAR_T_SIZE 2
    00070
    00071 #if defined(CS_COMPILER_BCC)
    00072 #define CS_HAVE_STDINT_H
    00073 #define CS_HAVE_INTPTR_T
    00074 #endif
    00075
    00076 #define CS_EMBED_PLUGIN_META
    00077
    00078 //#define CS_BUILD_SHARED_LIBS
    00079
    00080 #ifdef _WIN64
    00081 #  define CS_PROCESSOR_SIZE 64
    00082 #else
    00083 #  define CS_PROCESSOR_SIZE 32
    00084 #endif
    00085
    00086 #define CS_LONG_SIZE 4
    00087
    00088 // MSVC int64 format specifiers, to be used with native formatting functions
    00089 #if defined(CS_COMPILER_MSVC)
    00090 #define PRId64 "I64d"
    00091 #define PRIx64 "I64x"
    00092 #define PRIu64 "I64u"
    00093 #define PRIX64 "I64X"
    00094 #endif
    00095
    00096 //#define CS_REF_TRACKER
    00097 //#define CS_MEMORY_TRACKER
    00098
    00099 // --- Stuff that needs to go before *any* inclusion of VC standard headers:
    00100
    00101 #if defined(CS_COMPILER_MSVC) && (_MSC_VER >= 1400)
    00102 #  ifndef _CRT_SECURE_NO_DEPRECATE
    00103 #    define _CRT_SECURE_NO_DEPRECATE
    00104           /* In VC8, a lot of CRT methods were marked "deprecated" b/c they're
    00105            * deemed "insecure". Silence those warnings.
    00106            * NB: This is here b/c it needs to be set before any standard headers
    00107            * are included. */
    00108 #  endif
    00109 #  ifndef _CRT_NONSTDC_NO_DEPRECATE
    00110 #    define _CRT_NONSTDC_NO_DEPRECATE /* Similar.       */
    00111 #  endif
    00112 #endif
    00113
    00114 #endif // __CS_WIN32_CSCONFIG_H__