include/SDL_config_os2.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 02 Aug 2009 12:45:20 +0000
changeset 3219 b91354fa65a2
parent 3180 77d6336711fc
child 3220 6290f9bd097d
permissions -rw-r--r--
Don't redefine types if HAVE_STDINT_H is defined
slouken@1442
     1
/*
slouken@1442
     2
    SDL - Simple DirectMedia Layer
slouken@2859
     3
    Copyright (C) 1997-2009 Sam Lantinga
slouken@1442
     4
slouken@1442
     5
    This library is free software; you can redistribute it and/or
slouken@1442
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1442
     7
    License as published by the Free Software Foundation; either
slouken@1442
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1442
     9
slouken@1442
    10
    This library is distributed in the hope that it will be useful,
slouken@1442
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1442
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1442
    13
    Lesser General Public License for more details.
slouken@1442
    14
slouken@1442
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1442
    16
    License along with this library; if not, write to the Free Software
slouken@1442
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1442
    18
slouken@1442
    19
    Sam Lantinga
slouken@1442
    20
    slouken@libsdl.org
slouken@1442
    21
*/
slouken@1442
    22
slouken@1442
    23
#ifndef _SDL_config_os2_h
slouken@1442
    24
#define _SDL_config_os2_h
slouken@1608
    25
slouken@1608
    26
#include "SDL_platform.h"
slouken@1442
    27
slouken@1442
    28
/* This is a set of defines to configure the SDL features */
slouken@1442
    29
slouken@3219
    30
#ifndef HAVE_STDINT_H
slouken@1895
    31
typedef signed char int8_t;
slouken@1895
    32
typedef unsigned char uint8_t;
slouken@1895
    33
typedef signed short int16_t;
slouken@1895
    34
typedef unsigned short uint16_t;
slouken@1895
    35
typedef signed int int32_t;
slouken@1895
    36
typedef unsigned int uint32_t;
slouken@1895
    37
typedef unsigned int size_t;
slouken@1895
    38
typedef unsigned long uintptr_t;
slouken@1895
    39
typedef signed long long int64_t;
slouken@1895
    40
typedef unsigned long long uint64_t;
slouken@3219
    41
#endif /* !HAVE_STDINT_H */
slouken@1442
    42
bob@3180
    43
#define SIZEOF_VOIDP 4
slouken@1442
    44
#define SDL_HAS_64BIT_TYPE	1
slouken@1442
    45
slouken@1442
    46
/* Use Watcom's LIBC */
slouken@1442
    47
#define HAVE_LIBC 1
slouken@1442
    48
slouken@1442
    49
/* Useful headers */
slouken@1442
    50
#define HAVE_SYS_TYPES_H 1
slouken@1442
    51
#define HAVE_STDIO_H 1
slouken@1442
    52
#define STDC_HEADERS 1
slouken@1442
    53
#define HAVE_STDLIB_H 1
slouken@1442
    54
#define HAVE_STDARG_H 1
slouken@1442
    55
#define HAVE_MALLOC_H 1
slouken@1442
    56
#define HAVE_MEMORY_H 1
slouken@1442
    57
#define HAVE_STRING_H 1
slouken@1442
    58
#define HAVE_STRINGS_H 1
slouken@1442
    59
#define HAVE_INTTYPES_H 1
slouken@1442
    60
#define HAVE_STDINT_H 1
slouken@1442
    61
#define HAVE_CTYPE_H 1
slouken@1442
    62
#define HAVE_MATH_H 1
slouken@1442
    63
#define HAVE_SIGNAL_H 1
slouken@1442
    64
slouken@1442
    65
/* C library functions */
slouken@1442
    66
#define HAVE_MALLOC 1
slouken@1442
    67
#define HAVE_CALLOC 1
slouken@1442
    68
#define HAVE_REALLOC 1
slouken@1442
    69
#define HAVE_FREE 1
slouken@1442
    70
#define HAVE_ALLOCA 1
slouken@1442
    71
#define HAVE_GETENV 1
slouken@1442
    72
#define HAVE_PUTENV 1
slouken@1442
    73
#define HAVE_UNSETENV 1
slouken@1442
    74
#define HAVE_QSORT 1
slouken@1442
    75
#define HAVE_ABS 1
slouken@1442
    76
#define HAVE_BCOPY 1
slouken@1442
    77
#define HAVE_MEMSET 1
slouken@1442
    78
#define HAVE_MEMCPY 1
slouken@1442
    79
#define HAVE_MEMMOVE 1
slouken@1442
    80
#define HAVE_MEMCMP 1
slouken@1442
    81
#define HAVE_STRLEN 1
slouken@1442
    82
#define HAVE_STRLCPY 1
slouken@1442
    83
#define HAVE_STRLCAT 1
slouken@1442
    84
#define HAVE_STRDUP 1
slouken@1442
    85
#define HAVE__STRREV 1
slouken@1442
    86
#define HAVE__STRUPR 1
slouken@1442
    87
#define HAVE__STRLWR 1
slouken@1442
    88
#define HAVE_INDEX 1
slouken@1442
    89
#define HAVE_RINDEX 1
slouken@1442
    90
#define HAVE_STRCHR 1
slouken@1442
    91
#define HAVE_STRRCHR 1
slouken@1442
    92
#define HAVE_STRSTR 1
slouken@1442
    93
#define HAVE_ITOA 1
slouken@1442
    94
#define HAVE__LTOA 1
slouken@1442
    95
#define HAVE__UITOA 1
slouken@1442
    96
#define HAVE__ULTOA 1
slouken@1442
    97
#define HAVE_STRTOL 1
slouken@1442
    98
#define HAVE__I64TOA 1
slouken@1442
    99
#define HAVE__UI64TOA 1
slouken@1442
   100
#define HAVE_STRTOLL 1
slouken@1442
   101
#define HAVE_STRTOD 1
slouken@1442
   102
#define HAVE_ATOI 1
slouken@1442
   103
#define HAVE_ATOF 1
slouken@1442
   104
#define HAVE_STRCMP 1
slouken@1442
   105
#define HAVE_STRNCMP 1
slouken@1442
   106
#define HAVE_STRICMP 1
slouken@1442
   107
#define HAVE_STRCASECMP 1
slouken@1442
   108
#define HAVE_SSCANF 1
slouken@1442
   109
#define HAVE_SNPRINTF 1
slouken@1442
   110
#define HAVE_VSNPRINTF 1
slouken@1442
   111
#define HAVE_SETJMP 1
slouken@1442
   112
#define HAVE_CLOCK_GETTIME 1
slouken@1442
   113
slouken@1442
   114
/* Enable various audio drivers */
slouken@1442
   115
#define SDL_AUDIO_DRIVER_DART	1
icculus@1532
   116
#define SDL_AUDIO_DRIVER_DISK	1
icculus@1532
   117
#define SDL_AUDIO_DRIVER_DUMMY	1
slouken@1442
   118
slouken@1442
   119
/* Enable various cdrom drivers */
slouken@1442
   120
#define SDL_CDROM_OS2	1
slouken@1442
   121
slouken@1442
   122
/* Enable various input drivers */
slouken@1442
   123
#define SDL_JOYSTICK_OS2	1
slouken@2713
   124
#define SDL_HAPTIC_DUMMY	1
slouken@1442
   125
slouken@1442
   126
/* Enable various shared object loading systems */
slouken@1442
   127
#define SDL_LOADSO_OS2	1
slouken@1442
   128
slouken@1442
   129
/* Enable various threading systems */
slouken@1442
   130
#define SDL_THREAD_OS2	1
slouken@1442
   131
slouken@1442
   132
/* Enable various timer systems */
slouken@1442
   133
#define SDL_TIMER_OS2	1
slouken@1442
   134
slouken@1442
   135
/* Enable various video drivers */
slouken@1533
   136
#define SDL_VIDEO_DRIVER_DUMMY	1
slouken@1442
   137
#define SDL_VIDEO_DRIVER_OS2FS	1
slouken@1442
   138
slouken@1442
   139
/* Enable OpenGL support */
slouken@1442
   140
/* Nothing here yet for OS/2... :( */
slouken@1442
   141
icculus@3170
   142
/* Enable system power support */
icculus@3170
   143
#define SDL_POWER_OS2 1
icculus@3170
   144
slouken@1442
   145
/* Enable assembly routines where available */
slouken@1442
   146
#define SDL_ASSEMBLY_ROUTINES	1
slouken@1442
   147
slouken@1442
   148
#endif /* _SDL_config_os2_h */