include/SDL_config_minimal.h
author Ryan C. Gordon <icculus@icculus.org>
Tue, 20 Aug 2013 19:57:11 -0400
changeset 7667 be1cc6f55840
parent 7307 5d6b7b9432d3
child 8149 681eb46b8ac4
permissions -rw-r--r--
Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     1
/*
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
     2
  Simple DirectMedia Layer
6885
700f1b25f77f Happy New Year!
Sam Lantinga <slouken@libsdl.org>
parents: 6280
diff changeset
     3
  Copyright (C) 1997-2013 Sam Lantinga <slouken@libsdl.org>
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     4
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
     5
  This software is provided 'as-is', without any express or implied
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
     6
  warranty.  In no event will the authors be held liable for any damages
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
     7
  arising from the use of this software.
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
     8
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
     9
  Permission is granted to anyone to use this software for any purpose,
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    10
  including commercial applications, and to alter it and redistribute it
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    11
  freely, subject to the following restrictions:
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    12
5535
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    13
  1. The origin of this software must not be misrepresented; you must not
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    14
     claim that you wrote the original software. If you use this software
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    15
     in a product, an acknowledgment in the product documentation would be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    16
     appreciated but is not required.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    17
  2. Altered source versions must be plainly marked as such, and must not be
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    18
     misrepresented as being the original software.
96594ac5fd1a SDL 1.3 is now under the zlib license.
Sam Lantinga <slouken@libsdl.org>
parents: 5512
diff changeset
    19
  3. This notice may not be removed or altered from any source distribution.
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    20
*/
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    21
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    22
#ifndef _SDL_config_minimal_h
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    23
#define _SDL_config_minimal_h
1608
d951a5afaf07 A less rude way of doing the same thing...
Sam Lantinga <slouken@libsdl.org>
parents: 1607
diff changeset
    24
d951a5afaf07 A less rude way of doing the same thing...
Sam Lantinga <slouken@libsdl.org>
parents: 1607
diff changeset
    25
#include "SDL_platform.h"
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    26
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3243
diff changeset
    27
/**
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3243
diff changeset
    28
 *  \file SDL_config_minimal.h
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    29
 *
3407
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3243
diff changeset
    30
 *  This is the minimal configuration that can be used to build SDL.
d3baf5ac4e37 Partial fix for bug #859
Sam Lantinga <slouken@libsdl.org>
parents: 3243
diff changeset
    31
 */
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    32
7307
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    33
#define HAVE_STDARG_H   1
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    34
#define HAVE_STDDEF_H   1
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    35
7307
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    36
/* Most everything except Visual Studio 2008 and earlier has stdint.h now */
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    37
#if defined(_MSC_VER) && (_MSC_VER < 1600)
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    38
/* Here are some reasonable defaults */
5481
22dfc3958dc3 Fixed so code will compile with SDL_config_minimal.h
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    39
typedef unsigned int size_t;
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    40
typedef signed char int8_t;
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    41
typedef unsigned char uint8_t;
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    42
typedef signed short int16_t;
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    43
typedef unsigned short uint16_t;
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    44
typedef signed int int32_t;
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    45
typedef unsigned int uint32_t;
5481
22dfc3958dc3 Fixed so code will compile with SDL_config_minimal.h
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    46
typedef signed long long int64_t;
22dfc3958dc3 Fixed so code will compile with SDL_config_minimal.h
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    47
typedef unsigned long long uint64_t;
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    48
typedef unsigned long uintptr_t;
7307
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    49
#else
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    50
#define HAVE_STDINT_H 1
5d6b7b9432d3 Fixed SDL building with the minimal configuration
Sam Lantinga <slouken@libsdl.org>
parents: 7191
diff changeset
    51
#endif /* Visual Studio 2008 */
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    52
5481
22dfc3958dc3 Fixed so code will compile with SDL_config_minimal.h
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    53
#ifdef __GNUC__
22dfc3958dc3 Fixed so code will compile with SDL_config_minimal.h
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    54
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
22dfc3958dc3 Fixed so code will compile with SDL_config_minimal.h
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    55
#endif
22dfc3958dc3 Fixed so code will compile with SDL_config_minimal.h
Sam Lantinga <slouken@libsdl.org>
parents: 5262
diff changeset
    56
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    57
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    58
#define SDL_AUDIO_DRIVER_DUMMY  1
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    59
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    60
/* Enable the stub joystick driver (src/joystick/dummy/\*.c) */
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    61
#define SDL_JOYSTICK_DISABLED   1
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    62
2713
0906692aa6a4 Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 1608
diff changeset
    63
/* Enable the stub haptic driver (src/haptic/dummy/\*.c) */
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    64
#define SDL_HAPTIC_DISABLED 1
2713
0906692aa6a4 Final merge of Google Summer of Code 2008 work...
Sam Lantinga <slouken@libsdl.org>
parents: 1608
diff changeset
    65
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    66
/* Enable the stub shared object loader (src/loadso/dummy/\*.c) */
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    67
#define SDL_LOADSO_DISABLED 1
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    68
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    69
/* Enable the stub thread support (src/thread/generic/\*.c) */
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    70
#define SDL_THREADS_DISABLED    1
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    71
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    72
/* Enable the stub timer support (src/timer/dummy/\*.c) */
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    73
#define SDL_TIMERS_DISABLED 1
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    74
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    75
/* Enable the dummy video driver (src/video/dummy/\*.c) */
7191
75360622e65f File style cleanup for the SDL 2.0 release
Sam Lantinga <slouken@libsdl.org>
parents: 6885
diff changeset
    76
#define SDL_VIDEO_DRIVER_DUMMY  1
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    77
7667
be1cc6f55840 Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
Ryan C. Gordon <icculus@icculus.org>
parents: 7307
diff changeset
    78
/* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */
be1cc6f55840 Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
Ryan C. Gordon <icculus@icculus.org>
parents: 7307
diff changeset
    79
#define SDL_FILESYSTEM_DUMMY  1
be1cc6f55840 Added SDL_GetBasePath() and SDL_GetPrefPath() in new filesystem module.
Ryan C. Gordon <icculus@icculus.org>
parents: 7307
diff changeset
    80
1603
64710b9f3eeb Fixed bug #171
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    81
#endif /* _SDL_config_minimal_h */