include/SDL_config_win32.h
author Sam Lantinga <slouken@libsdl.org>
Mon, 06 Mar 2006 06:00:45 +0000
changeset 1470 d47d96962fcc
parent 1465 8dfa9a6d69a5
child 1471 9fb0eee04dd9
permissions -rw-r--r--
Fixed declarations to match mingw includes
     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 signed __int8		int8_t;
    30 typedef unsigned __int8		uint8_t;
    31 typedef signed __int16		int16_t;
    32 typedef unsigned __int16	uint16_t;
    33 typedef signed __int32		int32_t;
    34 typedef unsigned __int32	uint32_t;
    35 typedef signed __int64		int64_t;
    36 typedef unsigned __int64	uint64_t;
    37 #ifndef _UINTPTR_T_DEFINED
    38 #ifdef  _WIN64
    39 typedef unsigned __int64    uintptr_t;
    40 #else
    41 typedef unsigned int   uintptr_t;
    42 #endif
    43 #define _UINTPTR_T_DEFINED
    44 #endif
    45 #else
    46 typedef signed char int8_t;
    47 typedef unsigned char uint8_t;
    48 typedef signed short int16_t;
    49 typedef unsigned short uint16_t;
    50 typedef signed int int32_t;
    51 typedef unsigned int uint32_t;
    52 typedef signed long long int64_t;
    53 typedef unsigned long long uint64_t;
    54 typedef unsigned int size_t;
    55 typedef unsigned int uintptr_t;
    56 #endif /* _MSC_VER */
    57 #define SDL_HAS_64BIT_TYPE	1
    58 
    59 /* Useful headers */
    60 #define HAVE_STDARG_H	1
    61 #define HAVE_STDDEF_H	1
    62 
    63 /* Enable various audio drivers */
    64 #ifndef _WIN32_WCE
    65 #define SDL_AUDIO_DRIVER_DSOUND	1
    66 #endif
    67 #define SDL_AUDIO_DRIVER_WAVEOUT	1
    68 
    69 /* Enable various cdrom drivers */
    70 #define SDL_CDROM_WIN32	1
    71 
    72 /* Enable various input drivers */
    73 #define SDL_JOYSTICK_WINMM	1
    74 
    75 /* Enable various shared object loading systems */
    76 #define SDL_LOADSO_WIN32	1
    77 
    78 /* Enable various threading systems */
    79 #define SDL_THREAD_WIN32	1
    80 
    81 /* Enable various timer systems */
    82 #ifdef _WIN32_WCE
    83 #define SDL_TIMER_WINCE	1
    84 #else
    85 #define SDL_TIMER_WIN32	1
    86 #endif
    87 
    88 /* Enable various video drivers */
    89 #ifndef _WIN32_WCE
    90 #define SDL_VIDEO_DRIVER_DDRAW	1
    91 #endif
    92 #ifdef _WIN32_WCE
    93 #define SDL_VIDEO_DRIVER_GAPI	1
    94 #endif
    95 #define SDL_VIDEO_DRIVER_WINDIB	1
    96 
    97 /* Enable OpenGL support */
    98 #ifndef _WIN32_WCE
    99 #define SDL_VIDEO_OPENGL	1
   100 #define SDL_VIDEO_OPENGL_WGL	1
   101 #endif
   102 
   103 /* Enable assembly routines */
   104 #define SDL_ASSEMBLY_ROUTINES	1
   105 
   106 #endif /* _SDL_config_win32_h */