5 changed files with 19 additions and 65 deletions
@ -1,41 +0,0 @@ |
|||
Index: make/linux/Makefile
|
|||
===================================================================
|
|||
--- make/linux/Makefile (revision 1206)
|
|||
+++ make/linux/Makefile (working copy)
|
|||
@@ -36,9 +36,9 @@
|
|||
DEBUGFLAGS=-g -DDEBUG |
|||
endif |
|||
|
|||
-ifneq (,$(shell $(CXX) -v 2>&1 | tail -n 1 | grep -i mingw))
|
|||
-$(error Please use the Makefile in ../mingw32)
|
|||
-endif
|
|||
+#ifneq (,$(shell $(CXX) -v 2>&1 | tail -n 1 | grep -i mingw))
|
|||
+#$(error Please use the Makefile in ../mingw32)
|
|||
+#endif
|
|||
|
|||
CWD=$(shell pwd) |
|||
|
|||
Index: make/mingw32/Makefile
|
|||
===================================================================
|
|||
--- make/mingw32/Makefile (revision 1206)
|
|||
+++ make/mingw32/Makefile (working copy)
|
|||
@@ -19,6 +19,8 @@
|
|||
CXX = g++.exe |
|||
CC = gcc.exe |
|||
WINDRES = windres.exe |
|||
+AR = ar rcvu
|
|||
+RANLIB = ranlib
|
|||
RES = |
|||
SRC = $(wildcard ../../src/*.cpp) |
|||
OBJ = $(patsubst %.cpp,%.o,$(SRC)) |
|||
@@ -47,8 +49,8 @@
|
|||
rm -f .depend |
|||
|
|||
libebml.a: $(OBJ) |
|||
- ar r $@ $(OBJ)
|
|||
- ranlib $@
|
|||
+ $(AR) $@ $(OBJ)
|
|||
+ $(RANLIB) $@
|
|||
|
|||
libebml.dll: $(OBJ) |
|||
$(CXX) -shared -Wl,--export-all -Wl,--out-implib=$@.a -o $@ $(OBJ) |
|||
@ -0,0 +1,12 @@ |
|||
diff -ruN libebml/make/mingw32/Makefile libebml.new/make/mingw32/Makefile
|
|||
--- libebml/make/mingw32/Makefile 2010-04-11 18:36:50.000000000 +0200
|
|||
+++ libebml.new/make/mingw32/Makefile 2010-05-29 14:26:07.000000000 +0200
|
|||
@@ -50,7 +50,7 @@
|
|||
rm -f .depend |
|||
|
|||
libebml.a: $(OBJ) |
|||
- $(AR) r $@ $(OBJ)
|
|||
+ $(AR) rcvu $@ $(OBJ)
|
|||
$(RANLIB) $@ |
|||
|
|||
libebml.dll: $(OBJ) |
|||
@ -1,12 +0,0 @@ |
|||
diff -ruN libebml/ebml/EbmlCrc32.h libebml.new/ebml/EbmlCrc32.h
|
|||
--- libebml/ebml/EbmlCrc32.h 2009-08-19 00:48:35.000000000 +0200
|
|||
+++ libebml.new/ebml/EbmlCrc32.h 2009-08-19 00:49:35.000000000 +0200
|
|||
@@ -143,7 +143,7 @@
|
|||
|
|||
inline bool IsAlignedOn(const void *p, unsigned int alignment) |
|||
{ |
|||
- return IsPowerOf2(alignment) ? ModPowerOf2((unsigned long)p, alignment) == 0 : (unsigned long)p % alignment == 0;
|
|||
+ return IsPowerOf2(alignment) ? ModPowerOf2((uintptr_t)p, alignment) == 0 : (uintptr_t)p % alignment == 0;
|
|||
} |
|||
|
|||
template <class T> |
|||
Loading…
Reference in new issue