include/SDL_compat.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 01 Feb 2011 15:02:21 -0800
changeset 5145 2f44e6969a59
parent 5138 da10636e5eca
child 5169 ededa1ccf91c
permissions -rw-r--r--
Split the rendering API out into a separate header file.
slouken@1895
     1
/*
slouken@1895
     2
    SDL - Simple DirectMedia Layer
slouken@3697
     3
    Copyright (C) 1997-2010 Sam Lantinga
slouken@1895
     4
slouken@1895
     5
    This library is free software; you can redistribute it and/or
slouken@1895
     6
    modify it under the terms of the GNU Lesser General Public
slouken@1895
     7
    License as published by the Free Software Foundation; either
slouken@1895
     8
    version 2.1 of the License, or (at your option) any later version.
slouken@1895
     9
slouken@1895
    10
    This library is distributed in the hope that it will be useful,
slouken@1895
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@1895
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@1895
    13
    Lesser General Public License for more details.
slouken@1895
    14
slouken@1895
    15
    You should have received a copy of the GNU Lesser General Public
slouken@1895
    16
    License along with this library; if not, write to the Free Software
slouken@1895
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
slouken@1895
    18
slouken@1895
    19
    Sam Lantinga
slouken@1895
    20
    slouken@libsdl.org
slouken@1895
    21
*/
slouken@1895
    22
slouken@3407
    23
 /**
slouken@3407
    24
 *  \defgroup Compatibility SDL 1.2 Compatibility API
slouken@3407
    25
 */
slouken@3407
    26
/*@{*/
slouken@1895
    27
slouken@3407
    28
/**
slouken@3407
    29
 *  \file SDL_compat.h
slouken@3407
    30
 *
slouken@3407
    31
 *  This file contains functions for backwards compatibility with SDL 1.2.
slouken@3407
    32
 */
slouken@3407
    33
slouken@3407
    34
/**
slouken@3407
    35
 *  \def SDL_NO_COMPAT
slouken@3407
    36
 *
slouken@3407
    37
 *  #define SDL_NO_COMPAT to prevent SDL_compat.h from being included.
slouken@3407
    38
 *  SDL_NO_COMPAT is intended to make it easier to covert SDL 1.2 code to
slouken@3407
    39
 *  SDL 1.3/2.0.
slouken@3407
    40
 */
slouken@3407
    41
slouken@3407
    42
 /*@}*/
bob@3164
    43
bob@3164
    44
#ifdef SDL_NO_COMPAT
bob@3164
    45
#define _SDL_compat_h
bob@3164
    46
#endif
bob@3164
    47
slouken@1895
    48
#ifndef _SDL_compat_h
slouken@1895
    49
#define _SDL_compat_h
slouken@1895
    50
slouken@1895
    51
#include "SDL_video.h"
slouken@1895
    52
#include "SDL_version.h"
slouken@1895
    53
slouken@1895
    54
#include "begin_code.h"
slouken@1895
    55
/* Set up for C function definitions, even when using C++ */
slouken@1895
    56
#ifdef __cplusplus
slouken@1895
    57
/* *INDENT-OFF* */
slouken@1895
    58
extern "C" {
slouken@1895
    59
/* *INDENT-ON* */
slouken@1895
    60
#endif
slouken@1895
    61
slouken@3407
    62
/**
slouken@3407
    63
 *  \addtogroup Compatibility
slouken@3407
    64
 */
slouken@3407
    65
/*@{*/
slouken@3407
    66
slouken@5062
    67
/* Platform */
slouken@5086
    68
#ifdef __WIN32__
slouken@5062
    69
#undef __WIN32__
slouken@5062
    70
#define __WIN32__   1
slouken@5062
    71
#endif
slouken@5062
    72
slouken@3407
    73
/**
slouken@3407
    74
 *  \name Surface flags
slouken@3407
    75
 */
slouken@3407
    76
/*@{*/
slouken@3407
    77
#define SDL_SWSURFACE       0x00000000  /**< \note Not used */
slouken@2267
    78
#define SDL_SRCALPHA        0x00010000
slouken@2267
    79
#define SDL_SRCCOLORKEY     0x00020000
slouken@1895
    80
#define SDL_ANYFORMAT       0x00100000
slouken@1895
    81
#define SDL_HWPALETTE       0x00200000
slouken@1895
    82
#define SDL_DOUBLEBUF       0x00400000
slouken@1895
    83
#define SDL_FULLSCREEN      0x00800000
slouken@1895
    84
#define SDL_RESIZABLE       0x01000000
slouken@1895
    85
#define SDL_NOFRAME         0x02000000
slouken@1895
    86
#define SDL_OPENGL          0x04000000
slouken@3407
    87
#define SDL_HWSURFACE       0x08000001  /**< \note Not used */
slouken@3407
    88
#define SDL_ASYNCBLIT       0x08000000  /**< \note Not used */
slouken@3407
    89
#define SDL_RLEACCELOK      0x08000000  /**< \note Not used */
slouken@3407
    90
#define SDL_HWACCEL         0x08000000  /**< \note Not used */
slouken@3407
    91
/*@}*//*Surface flags*/
slouken@1895
    92
slouken@1895
    93
#define SDL_APPMOUSEFOCUS	0x01
slouken@1895
    94
#define SDL_APPINPUTFOCUS	0x02
slouken@1895
    95
#define SDL_APPACTIVE		0x04
slouken@1895
    96
slouken@1895
    97
#define SDL_LOGPAL 0x01
slouken@1895
    98
#define SDL_PHYSPAL 0x02
slouken@1895
    99
slouken@4429
   100
#define SDL_ACTIVEEVENT	SDL_EVENT_COMPAT1
slouken@4429
   101
#define SDL_VIDEORESIZE	SDL_EVENT_COMPAT2
slouken@4429
   102
#define SDL_VIDEOEXPOSE	SDL_EVENT_COMPAT3
slouken@4429
   103
#define SDL_ACTIVEEVENTMASK	SDL_ACTIVEEVENT, SDL_ACTIVEEVENT
slouken@4429
   104
#define SDL_VIDEORESIZEMASK SDL_VIDEORESIZE, SDL_VIDEORESIZE
slouken@4429
   105
#define SDL_VIDEOEXPOSEMASK SDL_VIDEOEXPOSE, SDL_VIDEOEXPOSE
slouken@4429
   106
#define SDL_WINDOWEVENTMASK SDL_WINDOWEVENT, SDL_WINDOWEVENT
slouken@4429
   107
#define SDL_KEYDOWNMASK SDL_KEYDOWN, SDL_KEYDOWN
slouken@4429
   108
#define SDL_KEYUPMASK SDL_KEYUP, SDL_KEYUP
slouken@4429
   109
#define SDL_KEYEVENTMASK SDL_KEYDOWN, SDL_KEYUP
slouken@4429
   110
#define SDL_TEXTEDITINGMASK SDL_TEXTEDITING, SDL_TEXTEDITING
slouken@4429
   111
#define SDL_TEXTINPUTMASK SDL_TEXTINPUT, SDL_TEXTINPUT
slouken@4429
   112
#define SDL_MOUSEMOTIONMASK SDL_MOUSEMOTION, SDL_MOUSEMOTION
slouken@4429
   113
#define SDL_MOUSEBUTTONDOWNMASK SDL_MOUSEBUTTONDOWN, SDL_MOUSEBUTTONDOWN
slouken@4429
   114
#define SDL_MOUSEBUTTONUPMASK SDL_MOUSEBUTTONUP, SDL_MOUSEBUTTONUP
slouken@4429
   115
#define SDL_MOUSEWHEELMASK SDL_MOUSEWHEEL, SDL_MOUSEWHEEL
slouken@4429
   116
#define SDL_MOUSEEVENTMASK SDL_MOUSEMOTION, SDL_MOUSEBUTTONUP
slouken@4429
   117
#define SDL_JOYAXISMOTIONMASK SDL_JOYAXISMOTION, SDL_JOYAXISMOTION
slouken@4429
   118
#define SDL_JOYBALLMOTIONMASK SDL_JOYBALLMOTION, SDL_JOYBALLMOTION
slouken@4429
   119
#define SDL_JOYHATMOTIONMASK SDL_JOYHATMOTION, SDL_JOYHATMOTION
slouken@4429
   120
#define SDL_JOYBUTTONDOWNMASK SDL_JOYBUTTONDOWN, SDL_JOYBUTTONDOWN
slouken@4429
   121
#define SDL_JOYBUTTONUPMASK SDL_JOYBUTTONUP, SDL_JOYBUTTONUP
slouken@4429
   122
#define SDL_JOYEVENTMASK SDL_JOYAXISMOTION, SDL_JOYBUTTONUP
slouken@4429
   123
#define SDL_QUITMASK SDL_QUIT, SDL_QUIT
slouken@4429
   124
#define SDL_SYSWMEVENTMASK SDL_SYSWMEVENT, SDL_SYSWMEVENT
slouken@4429
   125
#define SDL_PROXIMITYINMASK SDL_PROXIMITYIN, SDL_PROXIMITYIN
slouken@4429
   126
#define SDL_PROXIMITYOUTMASK SDL_PROXIMITYOUT, SDL_PROXIMITYOUT
slouken@4429
   127
#define SDL_ALLEVENTS SDL_FIRSTEVENT, SDL_LASTEVENT
slouken@1895
   128
slouken@1895
   129
#define SDL_BUTTON_WHEELUP	4
slouken@1895
   130
#define SDL_BUTTON_WHEELDOWN	5
slouken@1895
   131
slouken@2129
   132
#define SDL_DEFAULT_REPEAT_DELAY	500
slouken@2129
   133
#define SDL_DEFAULT_REPEAT_INTERVAL	30
slouken@2129
   134
slouken@1895
   135
typedef struct SDL_VideoInfo
slouken@1895
   136
{
slouken@1895
   137
    Uint32 hw_available:1;
slouken@1895
   138
    Uint32 wm_available:1;
slouken@1895
   139
    Uint32 UnusedBits1:6;
slouken@1895
   140
    Uint32 UnusedBits2:1;
slouken@1895
   141
    Uint32 blit_hw:1;
slouken@1895
   142
    Uint32 blit_hw_CC:1;
slouken@1895
   143
    Uint32 blit_hw_A:1;
slouken@1895
   144
    Uint32 blit_sw:1;
slouken@1895
   145
    Uint32 blit_sw_CC:1;
slouken@1895
   146
    Uint32 blit_sw_A:1;
slouken@1895
   147
    Uint32 blit_fill:1;
slouken@1895
   148
    Uint32 UnusedBits3:16;
slouken@1895
   149
    Uint32 video_mem;
slouken@1895
   150
slouken@1895
   151
    SDL_PixelFormat *vfmt;
slouken@2862
   152
slouken@2862
   153
    int current_w;
slouken@2862
   154
    int current_h;
slouken@1895
   155
} SDL_VideoInfo;
slouken@1895
   156
slouken@3407
   157
/**
slouken@3407
   158
 *  \name Overlay formats
slouken@3407
   159
 *
slouken@3407
   160
 *  The most common video overlay formats.
slouken@3407
   161
 *  
slouken@3407
   162
 *  For an explanation of these pixel formats, see:
slouken@3407
   163
 *  http://www.webartz.com/fourcc/indexyuv.htm
slouken@3407
   164
 *  
slouken@3407
   165
 *  For information on the relationship between color spaces, see:
slouken@3407
   166
 *  http://www.neuro.sfc.keio.ac.jp/~aly/polygon/info/color-space-faq.html
slouken@3407
   167
 */
slouken@3407
   168
/*@{*/
slouken@3407
   169
#define SDL_YV12_OVERLAY  0x32315659    /**< Planar mode: Y + V + U  (3 planes) */
slouken@3407
   170
#define SDL_IYUV_OVERLAY  0x56555949    /**< Planar mode: Y + U + V  (3 planes) */
slouken@3407
   171
#define SDL_YUY2_OVERLAY  0x32595559    /**< Packed mode: Y0+U0+Y1+V0 (1 plane) */
slouken@3407
   172
#define SDL_UYVY_OVERLAY  0x59565955    /**< Packed mode: U0+Y0+V0+Y1 (1 plane) */
slouken@3407
   173
#define SDL_YVYU_OVERLAY  0x55595659    /**< Packed mode: Y0+V0+Y1+U0 (1 plane) */
slouken@3407
   174
/*@}*//*Overlay formats*/
slouken@1895
   175
slouken@3407
   176
/**
slouken@3407
   177
 *  The YUV hardware video overlay.
slouken@1895
   178
 */
slouken@1895
   179
typedef struct SDL_Overlay
slouken@1895
   180
{
slouken@3407
   181
    Uint32 format;              /**< Read-only */
slouken@3407
   182
    int w, h;                   /**< Read-only */
slouken@3407
   183
    int planes;                 /**< Read-only */
slouken@3407
   184
    Uint16 *pitches;            /**< Read-only */
slouken@3407
   185
    Uint8 **pixels;             /**< Read-write */
slouken@1895
   186
slouken@3407
   187
    /** 
slouken@3407
   188
     *  \name Hardware-specific surface info
slouken@3407
   189
     */
slouken@3407
   190
    /*@{*/
slouken@1895
   191
    struct private_yuvhwfuncs *hwfuncs;
slouken@1895
   192
    struct private_yuvhwdata *hwdata;
slouken@3407
   193
    /*@}*//*Hardware-specific surface info*/
slouken@1895
   194
slouken@3407
   195
    /** 
slouken@3407
   196
     *  \name Special flags
slouken@3407
   197
     */
slouken@3407
   198
    /*@{*/
slouken@3407
   199
    Uint32 hw_overlay:1;        /**< Flag: This overlay hardware accelerated? */
slouken@1895
   200
    Uint32 UnusedBits:31;
slouken@3407
   201
    /*@}*//*Special flags*/
slouken@1895
   202
} SDL_Overlay;
slouken@1895
   203
slouken@1895
   204
typedef enum
slouken@1895
   205
{
slouken@1895
   206
    SDL_GRAB_QUERY = -1,
slouken@1895
   207
    SDL_GRAB_OFF = 0,
slouken@1895
   208
    SDL_GRAB_ON = 1
slouken@1895
   209
} SDL_GrabMode;
slouken@1895
   210
slouken@1895
   211
struct SDL_SysWMinfo;
slouken@1895
   212
slouken@3407
   213
/**
slouken@3407
   214
 *  \name Obsolete or renamed key codes
slouken@3407
   215
 */
slouken@3407
   216
/*@{*/
slouken@2268
   217
krogoway@5081
   218
#define SDL_keysym		SDL_KeySym
krogoway@5081
   219
#define SDL_scancode	SDL_ScanCode
krogoway@5081
   220
slouken@3407
   221
/** 
slouken@3407
   222
 *  \name Renamed keys
slouken@3407
   223
 *
slouken@3407
   224
 *  These key constants were renamed for clarity or consistency. 
slouken@3407
   225
 */
slouken@3407
   226
/*@{*/
slouken@2268
   227
#define SDLK_KP0 SDLK_KP_0
slouken@2268
   228
#define SDLK_KP1 SDLK_KP_1
slouken@2268
   229
#define SDLK_KP2 SDLK_KP_2
slouken@2268
   230
#define SDLK_KP3 SDLK_KP_3
slouken@2268
   231
#define SDLK_KP4 SDLK_KP_4
slouken@2268
   232
#define SDLK_KP5 SDLK_KP_5
slouken@2268
   233
#define SDLK_KP6 SDLK_KP_6
slouken@2268
   234
#define SDLK_KP7 SDLK_KP_7
slouken@2268
   235
#define SDLK_KP8 SDLK_KP_8
slouken@2268
   236
#define SDLK_KP9 SDLK_KP_9
slouken@2303
   237
#define SDLK_NUMLOCK SDLK_NUMLOCKCLEAR
slouken@2268
   238
#define SDLK_SCROLLOCK SDLK_SCROLLLOCK
slouken@2268
   239
#define SDLK_PRINT SDLK_PRINTSCREEN
slouken@4425
   240
#define SDLK_LMETA SDLK_LGUI
slouken@4425
   241
#define SDLK_RMETA SDLK_RGUI
slouken@3407
   242
/*@}*//*Renamed keys*/
slouken@2268
   243
slouken@3407
   244
/**
slouken@3407
   245
 *  \name META modifier
slouken@3407
   246
 *  
slouken@3407
   247
 *  The META modifier is equivalent to the GUI modifier from the USB standard.
slouken@3407
   248
 */
slouken@3407
   249
/*@{*/
slouken@2303
   250
#define KMOD_LMETA KMOD_LGUI
slouken@2303
   251
#define KMOD_RMETA KMOD_RGUI
slouken@2303
   252
#define KMOD_META KMOD_GUI
slouken@3407
   253
/*@}*//*META modifier*/
slouken@2268
   254
slouken@3407
   255
/** 
slouken@3407
   256
 *  \name Not in USB
slouken@3407
   257
 *
slouken@3407
   258
 *  These keys don't appear in the USB specification (or at least not under 
slouken@3407
   259
 *  those names). I'm unsure if the following assignments make sense or if these
slouken@3407
   260
 *  codes should be defined as actual additional SDLK_ constants.
slouken@3407
   261
 */
slouken@3407
   262
/*@{*/
slouken@2268
   263
#define SDLK_LSUPER SDLK_LMETA
slouken@2268
   264
#define SDLK_RSUPER SDLK_RMETA
slouken@2268
   265
#define SDLK_COMPOSE SDLK_APPLICATION
slouken@2268
   266
#define SDLK_BREAK SDLK_STOP
slouken@2268
   267
#define SDLK_EURO SDLK_2
slouken@3407
   268
/*@}*//*Not in USB*/
slouken@2268
   269
slouken@3407
   270
/*@}*//*Obsolete or renamed key codes*/
slouken@2268
   271
slouken@1895
   272
#define SDL_SetModuleHandle(x)
slouken@1895
   273
#define SDL_AllocSurface    SDL_CreateRGBSurface
slouken@1895
   274
slouken@1895
   275
extern DECLSPEC const SDL_version *SDLCALL SDL_Linked_Version(void);
bob@2329
   276
extern DECLSPEC char *SDLCALL SDL_AudioDriverName(char *namebuf, int maxlen);
bob@2329
   277
extern DECLSPEC char *SDLCALL SDL_VideoDriverName(char *namebuf, int maxlen);
slouken@1895
   278
extern DECLSPEC const SDL_VideoInfo *SDLCALL SDL_GetVideoInfo(void);
bob@2328
   279
extern DECLSPEC int SDLCALL SDL_VideoModeOK(int width,
bob@2328
   280
                                            int height,
bob@2329
   281
                                            int bpp, Uint32 flags);
slouken@3040
   282
extern DECLSPEC SDL_Rect **SDLCALL SDL_ListModes(const SDL_PixelFormat *
slouken@3040
   283
                                                 format, Uint32 flags);
slouken@3040
   284
extern DECLSPEC SDL_Surface *SDLCALL SDL_SetVideoMode(int width, int height,
bob@2329
   285
                                                      int bpp, Uint32 flags);
slouken@1895
   286
extern DECLSPEC SDL_Surface *SDLCALL SDL_GetVideoSurface(void);
slouken@1895
   287
extern DECLSPEC void SDLCALL SDL_UpdateRects(SDL_Surface * screen,
bob@2329
   288
                                             int numrects, SDL_Rect * rects);
bob@2328
   289
extern DECLSPEC void SDLCALL SDL_UpdateRect(SDL_Surface * screen,
bob@2328
   290
                                            Sint32 x,
bob@2329
   291
                                            Sint32 y, Uint32 w, Uint32 h);
slouken@1895
   292
extern DECLSPEC int SDLCALL SDL_Flip(SDL_Surface * screen);
bob@2328
   293
extern DECLSPEC int SDLCALL SDL_SetAlpha(SDL_Surface * surface,
bob@2329
   294
                                         Uint32 flag, Uint8 alpha);
slouken@1895
   295
extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormat(SDL_Surface * surface);
bob@2329
   296
extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
bob@2329
   297
                                                            surface);
slouken@1895
   298
extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
slouken@1895
   299
                                               const char *icon);
slouken@2043
   300
extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title,
slouken@2043
   301
                                               const char **icon);
bob@2329
   302
extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
slouken@1895
   303
extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
slouken@1895
   304
extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
slouken@1895
   305
extern DECLSPEC SDL_GrabMode SDLCALL SDL_WM_GrabInput(SDL_GrabMode mode);
bob@2328
   306
extern DECLSPEC int SDLCALL SDL_SetPalette(SDL_Surface * surface,
bob@2328
   307
                                           int flags,
slouken@1895
   308
                                           const SDL_Color * colors,
bob@2329
   309
                                           int firstcolor, int ncolors);
slouken@1895
   310
extern DECLSPEC int SDLCALL SDL_SetColors(SDL_Surface * surface,
slouken@1895
   311
                                          const SDL_Color * colors,
bob@2329
   312
                                          int firstcolor, int ncolors);
slouken@1895
   313
extern DECLSPEC int SDLCALL SDL_GetWMInfo(struct SDL_SysWMinfo *info);
slouken@1895
   314
extern DECLSPEC Uint8 SDLCALL SDL_GetAppState(void);
bob@2329
   315
extern DECLSPEC void SDLCALL SDL_WarpMouse(Uint16 x, Uint16 y);
slouken@1895
   316
extern DECLSPEC SDL_Overlay *SDLCALL SDL_CreateYUVOverlay(int width,
slouken@1895
   317
                                                          int height,
slouken@1895
   318
                                                          Uint32 format,
slouken@1895
   319
                                                          SDL_Surface *
slouken@1895
   320
                                                          display);
slouken@1895
   321
extern DECLSPEC int SDLCALL SDL_LockYUVOverlay(SDL_Overlay * overlay);
slouken@1895
   322
extern DECLSPEC void SDLCALL SDL_UnlockYUVOverlay(SDL_Overlay * overlay);
slouken@1895
   323
extern DECLSPEC int SDLCALL SDL_DisplayYUVOverlay(SDL_Overlay * overlay,
slouken@1895
   324
                                                  SDL_Rect * dstrect);
slouken@1895
   325
extern DECLSPEC void SDLCALL SDL_FreeYUVOverlay(SDL_Overlay * overlay);
slouken@1912
   326
extern DECLSPEC void SDLCALL SDL_GL_SwapBuffers(void);
bob@2329
   327
extern DECLSPEC int SDLCALL SDL_EnableKeyRepeat(int delay, int interval);
bob@2329
   328
extern DECLSPEC void SDLCALL SDL_GetKeyRepeat(int *delay, int *interval);
slouken@2303
   329
extern DECLSPEC int SDLCALL SDL_EnableUNICODE(int enable);
slouken@1895
   330
slouken@4943
   331
typedef SDL_Window* SDL_WindowID;
slouken@4943
   332
slouken@3596
   333
#define SDL_RenderPoint SDL_RenderDrawPoint
slouken@3596
   334
#define SDL_RenderLine SDL_RenderDrawLine
slouken@3596
   335
#define SDL_RenderFill(X)  (X) ? SDL_RenderFillRect(X) : SDL_RenderClear()
slouken@4468
   336
#define SDL_KillThread(X)
slouken@3536
   337
slouken@5111
   338
/* The timeslice and timer resolution are no longer relevant */
slouken@5111
   339
#define SDL_TIMESLICE		10
slouken@5111
   340
#define TIMER_RESOLUTION	10
slouken@5111
   341
slouken@5111
   342
typedef Uint32 (SDLCALL * SDL_OldTimerCallback) (Uint32 interval);
slouken@5111
   343
extern DECLSPEC int SDLCALL SDL_SetTimer(Uint32 interval, SDL_OldTimerCallback callback);
slouken@5111
   344
icculus@3581
   345
extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
icculus@3581
   346
slouken@3407
   347
/*@}*//*Compatibility*/
slouken@3407
   348
slouken@1895
   349
/* Ends C function definitions when using C++ */
slouken@1895
   350
#ifdef __cplusplus
slouken@1895
   351
/* *INDENT-OFF* */
slouken@1895
   352
}
slouken@1895
   353
/* *INDENT-ON* */
slouken@1895
   354
#endif
slouken@1895
   355
#include "close_code.h"
slouken@1895
   356
slouken@1895
   357
#endif /* _SDL_compat_h */
slouken@1895
   358
slouken@1895
   359
/* vi: set ts=4 sw=4 expandtab: */