projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed clang-format and clang_complete files from the repo
[dosdemo]
/
tools
/
csprite
/
src
/
main.c
diff --git
a/tools/csprite/src/main.c
b/tools/csprite/src/main.c
index
039a0eb
..
c549b3e
100644
(file)
--- a/
tools/csprite/src/main.c
+++ b/
tools/csprite/src/main.c
@@
-3,7
+3,11
@@
#include <string.h>
#include <stdint.h>
#include <assert.h>
#include <string.h>
#include <stdint.h>
#include <assert.h>
+#ifdef WIN32
+#include <malloc.h>
+#else
#include <alloca.h>
#include <alloca.h>
+#endif
#include "image.h"
struct rect {
#include "image.h"
struct rect {
@@
-144,7
+148,7
@@
const char *prefixfmt[] = {
/* TODO hardcoding the 16bpp changes for now, generalize later
* and while we're at it, let's get rid of the mul too ...
*/
/* TODO hardcoding the 16bpp changes for now, generalize later
* and while we're at it, let's get rid of the mul too ...
*/
- "\tsection .text\n"
+ "\tsection .text USE32\n"
"\tglobal %s\n"
"\tglobal _%s\n"
"\tglobal %s_\n"
"\tglobal %s\n"
"\tglobal _%s\n"
"\tglobal %s_\n"