Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
fc9ee0c1
Commit
fc9ee0c1
authored
Mar 12, 2011
by
Sam Lantinga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed so code will compile with SDL_config_minimal.h
parent
2bfebc89
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
62 additions
and
7 deletions
+62
-7
SDL_config_minimal.h
include/SDL_config_minimal.h
+9
-1
SDL_stdinc.h
include/SDL_stdinc.h
+1
-4
SDL_pulseaudio.c
src/audio/pulseaudio/SDL_pulseaudio.c
+4
-1
SDL_sysmutex.c
src/thread/pthread/SDL_sysmutex.c
+1
-1
SDL_x11clipboard.c
src/video/x11/SDL_x11clipboard.c
+4
-0
SDL_x11dyn.c
src/video/x11/SDL_x11dyn.c
+4
-0
SDL_x11events.c
src/video/x11/SDL_x11events.c
+4
-0
SDL_x11framebuffer.c
src/video/x11/SDL_x11framebuffer.c
+4
-0
SDL_x11keyboard.c
src/video/x11/SDL_x11keyboard.c
+4
-0
SDL_x11modes.c
src/video/x11/SDL_x11modes.c
+4
-0
SDL_x11mouse.c
src/video/x11/SDL_x11mouse.c
+4
-0
SDL_x11shape.c
src/video/x11/SDL_x11shape.c
+6
-0
SDL_x11touch.c
src/video/x11/SDL_x11touch.c
+5
-0
SDL_x11video.c
src/video/x11/SDL_x11video.c
+4
-0
SDL_x11window.c
src/video/x11/SDL_x11window.c
+4
-0
No files found.
include/SDL_config_minimal.h
View file @
fc9ee0c1
...
@@ -31,19 +31,27 @@
...
@@ -31,19 +31,27 @@
* This is the minimal configuration that can be used to build SDL.
* This is the minimal configuration that can be used to build SDL.
*/
*/
#include <stddef.h>
#include <stdarg.h>
#include <stdarg.h>
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
#if !defined(_STDINT_H_) && (!defined(HAVE_STDINT_H) || !_HAVE_STDINT_H)
typedef
unsigned
int
size_t
;
typedef
signed
char
int8_t
;
typedef
signed
char
int8_t
;
typedef
unsigned
char
uint8_t
;
typedef
unsigned
char
uint8_t
;
typedef
signed
short
int16_t
;
typedef
signed
short
int16_t
;
typedef
unsigned
short
uint16_t
;
typedef
unsigned
short
uint16_t
;
typedef
signed
int
int32_t
;
typedef
signed
int
int32_t
;
typedef
unsigned
int
uint32_t
;
typedef
unsigned
int
uint32_t
;
typedef
unsigned
int
size_t
;
typedef
signed
long
long
int64_t
;
typedef
unsigned
long
long
uint64_t
;
typedef
unsigned
long
uintptr_t
;
typedef
unsigned
long
uintptr_t
;
#endif
/* !_STDINT_H_ && !HAVE_STDINT_H */
#endif
/* !_STDINT_H_ && !HAVE_STDINT_H */
#define SDL_HAS_64BIT_TYPE
#ifdef __GNUC__
#define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1
#endif
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
/* Enable the dummy audio driver (src/audio/dummy/\*.c) */
#define SDL_AUDIO_DRIVER_DUMMY 1
#define SDL_AUDIO_DRIVER_DUMMY 1
...
...
include/SDL_stdinc.h
View file @
fc9ee0c1
...
@@ -174,10 +174,7 @@ SDL_COMPILE_TIME_ASSERT(uint16, sizeof(Uint16) == 2);
...
@@ -174,10 +174,7 @@ SDL_COMPILE_TIME_ASSERT(uint16, sizeof(Uint16) == 2);
SDL_COMPILE_TIME_ASSERT
(
sint16
,
sizeof
(
Sint16
)
==
2
);
SDL_COMPILE_TIME_ASSERT
(
sint16
,
sizeof
(
Sint16
)
==
2
);
SDL_COMPILE_TIME_ASSERT
(
uint32
,
sizeof
(
Uint32
)
==
4
);
SDL_COMPILE_TIME_ASSERT
(
uint32
,
sizeof
(
Uint32
)
==
4
);
SDL_COMPILE_TIME_ASSERT
(
sint32
,
sizeof
(
Sint32
)
==
4
);
SDL_COMPILE_TIME_ASSERT
(
sint32
,
sizeof
(
Sint32
)
==
4
);
#if !defined(__NINTENDODS__) && !defined(__ANDROID__)
#ifdef SDL_HAS_64BIT_TYPE
/* TODO: figure out why the following happens:
include/SDL_stdinc.h:150: error: size of array 'SDL_dummy_uint64' is negative
include/SDL_stdinc.h:151: error: size of array 'SDL_dummy_sint64' is negative */
SDL_COMPILE_TIME_ASSERT
(
uint64
,
sizeof
(
Uint64
)
==
8
);
SDL_COMPILE_TIME_ASSERT
(
uint64
,
sizeof
(
Uint64
)
==
8
);
SDL_COMPILE_TIME_ASSERT
(
sint64
,
sizeof
(
Sint64
)
==
8
);
SDL_COMPILE_TIME_ASSERT
(
sint64
,
sizeof
(
Sint64
)
==
8
);
#endif
#endif
...
...
src/audio/pulseaudio/SDL_pulseaudio.c
View file @
fc9ee0c1
...
@@ -26,9 +26,10 @@
...
@@ -26,9 +26,10 @@
was the cleanest way to move it to 1.3. The 1.2 target was written by
was the cleanest way to move it to 1.3. The 1.2 target was written by
Stéphan Kochen: stephan .a.t. kochen.nl
Stéphan Kochen: stephan .a.t. kochen.nl
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_AUDIO_DRIVER_PULSEAUDIO
/* Allow access to a raw mixing buffer */
/* Allow access to a raw mixing buffer */
#ifdef HAVE_SIGNAL_H
#ifdef HAVE_SIGNAL_H
...
@@ -505,4 +506,6 @@ AudioBootStrap PULSEAUDIO_bootstrap = {
...
@@ -505,4 +506,6 @@ AudioBootStrap PULSEAUDIO_bootstrap = {
PULSEAUDIO_DRIVER_NAME
,
"PulseAudio"
,
PULSEAUDIO_Init
,
0
PULSEAUDIO_DRIVER_NAME
,
"PulseAudio"
,
PULSEAUDIO_Init
,
0
};
};
#endif
/* SDL_AUDIO_DRIVER_PULSEAUDIO */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/thread/pthread/SDL_sysmutex.c
View file @
fc9ee0c1
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#if !SDL_THREAD_PTHREAD_RECURSIVE_MUTEX && \
#if !SDL_THREAD_PTHREAD_RECURSIVE_MUTEX && \
!SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
!SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP
#define FAKE_RECURSIVE_MUTEX
#define FAKE_RECURSIVE_MUTEX
1
#endif
#endif
struct
SDL_mutex
struct
SDL_mutex
...
...
src/video/x11/SDL_x11clipboard.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include <limits.h>
/* For INT_MAX */
#include <limits.h>
/* For INT_MAX */
#include "SDL_events.h"
#include "SDL_events.h"
...
@@ -149,4 +151,6 @@ X11_HasClipboardText(_THIS)
...
@@ -149,4 +151,6 @@ X11_HasClipboardText(_THIS)
return
retval
;
return
retval
;
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11dyn.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#define DEBUG_DYNAMIC_X11 0
#define DEBUG_DYNAMIC_X11 0
#include "SDL_x11dyn.h"
#include "SDL_x11dyn.h"
...
@@ -206,4 +208,6 @@ SDL_X11_LoadSymbols(void)
...
@@ -206,4 +208,6 @@ SDL_X11_LoadSymbols(void)
return
rc
;
return
rc
;
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11events.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include <sys/types.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/time.h>
#include <signal.h>
#include <signal.h>
...
@@ -637,4 +639,6 @@ X11_SuspendScreenSaver(_THIS)
...
@@ -637,4 +639,6 @@ X11_SuspendScreenSaver(_THIS)
#endif
#endif
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11framebuffer.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include "SDL_x11video.h"
#include "SDL_x11video.h"
#include "SDL_x11framebuffer.h"
#include "SDL_x11framebuffer.h"
...
@@ -211,4 +213,6 @@ X11_DestroyWindowFramebuffer(_THIS, SDL_Window * window)
...
@@ -211,4 +213,6 @@ X11_DestroyWindowFramebuffer(_THIS, SDL_Window * window)
}
}
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11keyboard.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include "SDL_x11video.h"
#include "SDL_x11video.h"
#include "../../events/SDL_keyboard_c.h"
#include "../../events/SDL_keyboard_c.h"
...
@@ -287,4 +289,6 @@ X11_QuitKeyboard(_THIS)
...
@@ -287,4 +289,6 @@ X11_QuitKeyboard(_THIS)
{
{
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11modes.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include "SDL_x11video.h"
#include "SDL_x11video.h"
/*#define X11MODES_DEBUG*/
/*#define X11MODES_DEBUG*/
...
@@ -715,4 +717,6 @@ X11_QuitModes(_THIS)
...
@@ -715,4 +717,6 @@ X11_QuitModes(_THIS)
{
{
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11mouse.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include "SDL_assert.h"
#include "SDL_assert.h"
#include "SDL_x11video.h"
#include "SDL_x11video.h"
#include "SDL_x11mouse.h"
#include "SDL_x11mouse.h"
...
@@ -293,4 +295,6 @@ X11_QuitMouse(_THIS)
...
@@ -293,4 +295,6 @@ X11_QuitMouse(_THIS)
X11_DestroyEmptyCursor
();
X11_DestroyEmptyCursor
();
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11shape.c
View file @
fc9ee0c1
...
@@ -19,6 +19,9 @@
...
@@ -19,6 +19,9 @@
Eli Gottlieb
Eli Gottlieb
eligottlieb@gmail.com
eligottlieb@gmail.com
*/
*/
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include "SDL_assert.h"
#include "SDL_assert.h"
#include "SDL_x11video.h"
#include "SDL_x11video.h"
...
@@ -108,3 +111,6 @@ X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMo
...
@@ -108,3 +111,6 @@ X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMo
return
0
;
return
0
;
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
src/video/x11/SDL_x11touch.c
View file @
fc9ee0c1
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
slouken@libsdl.org
slouken@libsdl.org
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include "SDL_x11video.h"
#include "SDL_x11video.h"
#include "SDL_x11touch.h"
#include "SDL_x11touch.h"
#include "../../events/SDL_touch_c.h"
#include "../../events/SDL_touch_c.h"
...
@@ -117,4 +120,6 @@ X11_QuitTouch(_THIS)
...
@@ -117,4 +120,6 @@ X11_QuitTouch(_THIS)
SDL_TouchQuit
();
SDL_TouchQuit
();
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11video.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include <unistd.h>
/* For getpid() and readlink() */
#include <unistd.h>
/* For getpid() and readlink() */
#include "SDL_video.h"
#include "SDL_video.h"
...
@@ -390,4 +392,6 @@ X11_UseDirectColorVisuals(void)
...
@@ -390,4 +392,6 @@ X11_UseDirectColorVisuals(void)
return
SDL_getenv
(
"SDL_VIDEO_X11_NODIRECTCOLOR"
)
?
SDL_FALSE
:
SDL_TRUE
;
return
SDL_getenv
(
"SDL_VIDEO_X11_NODIRECTCOLOR"
)
?
SDL_FALSE
:
SDL_TRUE
;
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vim: set ts=4 sw=4 expandtab: */
/* vim: set ts=4 sw=4 expandtab: */
src/video/x11/SDL_x11window.c
View file @
fc9ee0c1
...
@@ -21,6 +21,8 @@
...
@@ -21,6 +21,8 @@
*/
*/
#include "SDL_config.h"
#include "SDL_config.h"
#if SDL_VIDEO_DRIVER_X11
#include "../SDL_sysvideo.h"
#include "../SDL_sysvideo.h"
#include "../SDL_pixels_c.h"
#include "../SDL_pixels_c.h"
#include "../../events/SDL_keyboard_c.h"
#include "../../events/SDL_keyboard_c.h"
...
@@ -1084,4 +1086,6 @@ X11_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
...
@@ -1084,4 +1086,6 @@ X11_GetWindowWMInfo(_THIS, SDL_Window * window, SDL_SysWMinfo * info)
}
}
}
}
#endif
/* SDL_VIDEO_DRIVER_X11 */
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment