include/SDL_config_win32.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 24 Feb 2006 18:24:57 +0000
changeset 1428 5f52867ba65c
parent 1423 4ed717f9e509
child 1465 8dfa9a6d69a5
permissions -rw-r--r--
Update for Visual C++ 6.0
     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     slouken@libsdl.org
    21 */
    22 
    23 #ifndef _SDL_config_win32_h
    24 #define _SDL_config_win32_h
    25 
    26 /* This is a set of defines to configure the SDL features */
    27 
    28 #ifdef _MSC_VER
    29 typedef __int8			int8_t;
    30 typedef unsigned __int8		uint8_t;
    31 typedef __int16			int16_t;
    32 typedef unsigned __int16	uint16_t;
    33 typedef __int32			int32_t;
    34 typedef unsigned __int32	uint32_t;
    35 typedef __int64			int64_t;
    36 typedef unsigned __int64	uint64_t;
    37 #if _MSC_VER <= 1200
    38 typedef unsigned long uintptr_t;
    39 #endif
    40 #endif
    41 #define SDL_HAS_64BIT_TYPE	1
    42 
    43 /* Useful headers */
    44 #define HAVE_STDARG_H	1
    45 #define HAVE_STDDEF_H	1
    46 
    47 /* Enable various audio drivers */
    48 #ifndef _WIN32_WCE
    49 #define SDL_AUDIO_DRIVER_DSOUND	1
    50 #endif
    51 #define SDL_AUDIO_DRIVER_WAVEOUT	1
    52 
    53 /* Enable various cdrom drivers */
    54 #define SDL_CDROM_WIN32	1
    55 
    56 /* Enable various input drivers */
    57 #define SDL_JOYSTICK_WINMM	1
    58 
    59 /* Enable various shared object loading systems */
    60 #define SDL_LOADSO_WIN32	1
    61 
    62 /* Enable various threading systems */
    63 #define SDL_THREAD_WIN32	1
    64 
    65 /* Enable various timer systems */
    66 #ifdef _WIN32_WCE
    67 #define SDL_TIMER_WINCE	1
    68 #else
    69 #define SDL_TIMER_WIN32	1
    70 #endif
    71 
    72 /* Enable various video drivers */
    73 #ifndef _WIN32_WCE
    74 #define SDL_VIDEO_DRIVER_DDRAW	1
    75 #endif
    76 #ifdef _WIN32_WCE
    77 #define SDL_VIDEO_DRIVER_GAPI	1
    78 #endif
    79 #define SDL_VIDEO_DRIVER_WINDIB	1
    80 
    81 /* Enable OpenGL support */
    82 #define SDL_VIDEO_OPENGL	1
    83 #define SDL_VIDEO_OPENGL_WGL	1
    84 
    85 /* Enable assembly routines */
    86 #define SDL_ASSEMBLY_ROUTINES	1
    87 
    88 #endif /* _SDL_config_win32_h */