aboutsummaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/makefile13
-rw-r--r--extensions/smdatapack.cpp2
2 files changed, 14 insertions, 1 deletions
diff --git a/extensions/makefile b/extensions/makefile
new file mode 100644
index 0000000..4c6b3fe
--- /dev/null
+++ b/extensions/makefile
@@ -0,0 +1,13 @@
+CC= g++
+CXXFLAGS= -c -std=c++11 -Wall -I../include -I/usr/include/freetype2
+
+all: objects archive clean
+
+objects:
+ $(CC) *.cpp $(CXXFLAGS)
+archive:
+ $(AR) rcs libsmeltext.a *.o
+clean:
+ if ( test smanim.o ); then rm *.o; fi
+clean-all: clean
+ rm *.a \ No newline at end of file
diff --git a/extensions/smdatapack.cpp b/extensions/smdatapack.cpp
index 2e77324..3138ccd 100644
--- a/extensions/smdatapack.cpp
+++ b/extensions/smdatapack.cpp
@@ -11,7 +11,7 @@
#include "smdatapack.hpp"
#include <cstdio>
#include <cstring>
-#define gzgetDWORD(f) ((gzgetc(f)<<24)|(gzgetc(f)<<16)|(gzgetc(f)<<8)|(gzgetc(f)))&0xFFFFFFFF
+#define gzgetDWORD(f) (((gzgetc(f))<<24)|((gzgetc(f))<<16)|((gzgetc(f))<<8)|(gzgetc(f)))&0xFFFFFFFF
#define gch ((*(cp++))&0xFF)
#define mmgetDWORD ((gch<<24)|(gch<<16)|(gch<<8)|(gch))&0xFFFFFFFF
#define gzputDWORD(f,a) gzputc(f,a>>24);gzputc(f,(a>>16)&0xFF);gzputc(f,(a>>8)&0xFF);gzputc(f,a&0xFF);