diff options
Diffstat (limited to 'system/lib/sdl.cpp')
-rw-r--r-- | system/lib/sdl.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/system/lib/sdl.cpp b/system/lib/sdl.cpp new file mode 100644 index 00000000..7038cdb1 --- /dev/null +++ b/system/lib/sdl.cpp @@ -0,0 +1,13 @@ + +#include <stdlib.h> + +// force malloc&free to be included in from libc +struct Force { + Force() { + void *x = malloc(10); + free(x); + } +}; + +static Force f; + |