Annotation of sbbs/include/sdl/sdl_config_win32.h, revision 1.1.1.1

1.1       root        1: /*
                      2:     SDL - Simple DirectMedia Layer
                      3:     Copyright (C) 1997-2006 Sam Lantinga
                      4: 
                      5:     This library is free software; you can redistribute it and/or
                      6:     modify it under the terms of the GNU Lesser General Public
                      7:     License as published by the Free Software Foundation; either
                      8:     version 2.1 of the License, or (at your option) any later version.
                      9: 
                     10:     This library is distributed in the hope that it will be useful,
                     11:     but WITHOUT ANY WARRANTY; without even the implied warranty of
                     12:     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                     13:     Lesser General Public License for more details.
                     14: 
                     15:     You should have received a copy of the GNU Lesser General Public
                     16:     License along with this library; if not, write to the Free Software
                     17:     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
                     18: 
                     19:     Sam Lantinga
                     20:     [email protected]
                     21: */
                     22: 
                     23: #ifndef _SDL_config_win32_h
                     24: #define _SDL_config_win32_h
                     25: 
                     26: #include "SDL_platform.h"
                     27: 
                     28: /* This is a set of defines to configure the SDL features */
                     29: 
                     30: #if defined(__GNUC__) || defined(__DMC__)
                     31: #define HAVE_STDINT_H  1
                     32: #elif defined(_MSC_VER)
                     33: #include <gen_defs.h>
                     34: typedef signed __int64         int64_t;
                     35: typedef unsigned __int64       uint64_t;
                     36: #ifndef _UINTPTR_T_DEFINED
                     37: #ifdef  _WIN64
                     38: typedef unsigned __int64    uintptr_t;
                     39: #else
                     40: typedef unsigned int   uintptr_t;
                     41: #endif
                     42: #define _UINTPTR_T_DEFINED
                     43: #endif
                     44: /* Older Visual C++ headers don't have the Win64-compatible typedefs... */
                     45: #if ((_MSC_VER <= 1200) && (!defined(DWORD_PTR)))
                     46: #define DWORD_PTR DWORD
                     47: #endif
                     48: #if ((_MSC_VER <= 1200) && (!defined(LONG_PTR)))
                     49: #define LONG_PTR LONG
                     50: #endif
                     51: #else  /* !__GNUC__ && !_MSC_VER */
                     52: #include <gen_defs.h>
                     53: #ifdef __BORLANDC__
                     54:        typedef __int64 int64_t;
                     55:        typedef unsigned __int64 uint64_t;
                     56: #else
                     57:        typedef signed long long int64_t;
                     58:        typedef unsigned long long uint64_t;
                     59: #endif
                     60: #ifndef _SIZE_T_DEFINED_
                     61: #define _SIZE_T_DEFINED_
                     62: typedef unsigned int size_t;
                     63: #endif
                     64: typedef unsigned int uintptr_t;
                     65: #endif /* __GNUC__ || _MSC_VER */
                     66: #define SDL_HAS_64BIT_TYPE     1
                     67: 
                     68: /* Enabled for SDL 1.2 (binary compatibility) */
                     69: #define HAVE_LIBC      1
                     70: #ifdef HAVE_LIBC
                     71: /* Useful headers */
                     72: #define HAVE_STDIO_H 1
                     73: #define STDC_HEADERS 1
                     74: #define HAVE_STRING_H 1
                     75: #define HAVE_CTYPE_H 1
                     76: #define HAVE_MATH_H 1
                     77: #ifndef _WIN32_WCE
                     78: #define HAVE_SIGNAL_H 1
                     79: #endif
                     80: 
                     81: /* C library functions */
                     82: #define HAVE_MALLOC 1
                     83: #define HAVE_CALLOC 1
                     84: #define HAVE_REALLOC 1
                     85: #define HAVE_FREE 1
                     86: #define HAVE_ALLOCA 1
                     87: #define HAVE_QSORT 1
                     88: #define HAVE_ABS 1
                     89: #define HAVE_MEMSET 1
                     90: #define HAVE_MEMCPY 1
                     91: #define HAVE_MEMMOVE 1
                     92: #define HAVE_MEMCMP 1
                     93: #define HAVE_STRLEN 1
                     94: #define HAVE__STRREV 1
                     95: #define HAVE__STRUPR 1
                     96: #define HAVE__STRLWR 1
                     97: #define HAVE_STRCHR 1
                     98: #define HAVE_STRRCHR 1
                     99: #define HAVE_STRSTR 1
                    100: #define HAVE_ITOA 1
                    101: #define HAVE__LTOA 1
                    102: #define HAVE__ULTOA 1
                    103: #define HAVE_STRTOL 1
                    104: #define HAVE_STRTOUL 1
                    105: #define HAVE_STRTOLL 1
                    106: #define HAVE_STRTOD 1
                    107: #define HAVE_ATOI 1
                    108: #define HAVE_ATOF 1
                    109: #define HAVE_STRCMP 1
                    110: #define HAVE_STRNCMP 1
                    111: #define HAVE__STRICMP 1
                    112: #define HAVE__STRNICMP 1
                    113: #define HAVE_SSCANF 1
                    114: #else
                    115: #define HAVE_STDARG_H  1
                    116: #define HAVE_STDDEF_H  1
                    117: #endif
                    118: 
                    119: /* Enable various audio drivers */
                    120: #ifndef _WIN32_WCE
                    121: #define SDL_AUDIO_DRIVER_DSOUND        1
                    122: #endif
                    123: #define SDL_AUDIO_DRIVER_WAVEOUT       1
                    124: #define SDL_AUDIO_DRIVER_DISK  1
                    125: #define SDL_AUDIO_DRIVER_DUMMY 1
                    126: 
                    127: /* Enable various cdrom drivers */
                    128: #ifdef _WIN32_WCE
                    129: #define SDL_CDROM_DISABLED      1
                    130: #else
                    131: #define SDL_CDROM_WIN32                1
                    132: #endif
                    133: 
                    134: /* Enable various input drivers */
                    135: #ifdef _WIN32_WCE
                    136: #define SDL_JOYSTICK_DISABLED   1
                    137: #else
                    138: #define SDL_JOYSTICK_WINMM     1
                    139: #endif
                    140: 
                    141: /* Enable various shared object loading systems */
                    142: #define SDL_LOADSO_WIN32       1
                    143: 
                    144: /* Enable various threading systems */
                    145: #define SDL_THREAD_WIN32       1
                    146: 
                    147: /* Enable various timer systems */
                    148: #ifdef _WIN32_WCE
                    149: #define SDL_TIMER_WINCE        1
                    150: #else
                    151: #define SDL_TIMER_WIN32        1
                    152: #endif
                    153: 
                    154: /* Enable various video drivers */
                    155: #ifdef _WIN32_WCE
                    156: #define SDL_VIDEO_DRIVER_GAPI  1
                    157: #endif
                    158: #ifndef _WIN32_WCE
                    159: #define SDL_VIDEO_DRIVER_DDRAW 1
                    160: #endif
                    161: #define SDL_VIDEO_DRIVER_DUMMY 1
                    162: #define SDL_VIDEO_DRIVER_WINDIB        1
                    163: 
                    164: /* Enable OpenGL support */
                    165: #ifndef _WIN32_WCE
                    166: #define SDL_VIDEO_OPENGL       1
                    167: #define SDL_VIDEO_OPENGL_WGL   1
                    168: #endif
                    169: 
                    170: /* Enable assembly routines (Win64 doesn't have inline asm) */
                    171: #ifndef _WIN64
                    172: #define SDL_ASSEMBLY_ROUTINES  1
                    173: #endif
                    174: 
                    175: #endif /* _SDL_config_win32_h */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.