r1096 - in trunk: . code/jpeg-6
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat Jun 2 15:56:43 EDT 2007
Author: tma
Date: 2007-06-02 15:56:43 -0400 (Sat, 02 Jun 2007)
New Revision: 1096
Modified:
trunk/Makefile
trunk/code/jpeg-6/jerror.c
trunk/code/jpeg-6/jmemnobs.c
trunk/code/jpeg-6/jmorecfg.h
Log:
* Remove silly MINGW_CFLAGS hack
Modified: trunk/Makefile
===================================================================
--- trunk/Makefile 2007-06-02 15:26:30 UTC (rev 1095)
+++ trunk/Makefile 2007-06-02 19:56:43 UTC (rev 1096)
@@ -449,7 +449,6 @@
endif
GL_CFLAGS =
- MINGW_CFLAGS = -DDONT_TYPEDEF_INT32
OPTIMIZE = -O3 -march=i586 -fomit-frame-pointer -ffast-math -falign-loops=2 \
-funroll-loops -falign-jumps=2 -falign-functions=2 -fstrength-reduce
@@ -1197,10 +1196,10 @@
$(B)/client/jdpostct.o : $(JPDIR)/jdpostct.c; $(DO_CC)
$(B)/client/jdsample.o : $(JPDIR)/jdsample.c; $(DO_CC)
$(B)/client/jdtrans.o : $(JPDIR)/jdtrans.c; $(DO_CC)
-$(B)/client/jerror.o : $(JPDIR)/jerror.c; $(DO_CC) $(GL_CFLAGS) $(MINGW_CFLAGS)
+$(B)/client/jerror.o : $(JPDIR)/jerror.c; $(DO_CC) $(GL_CFLAGS)
$(B)/client/jidctflt.o : $(JPDIR)/jidctflt.c; $(DO_CC)
$(B)/client/jmemmgr.o : $(JPDIR)/jmemmgr.c; $(DO_CC)
-$(B)/client/jmemnobs.o : $(JPDIR)/jmemnobs.c; $(DO_CC) $(GL_CFLAGS) $(MINGW_CFLAGS)
+$(B)/client/jmemnobs.o : $(JPDIR)/jmemnobs.c; $(DO_CC) $(GL_CFLAGS)
$(B)/client/jutils.o : $(JPDIR)/jutils.c; $(DO_CC)
$(B)/client/tr_bsp.o : $(RDIR)/tr_bsp.c; $(DO_CC) $(GL_CFLAGS)
@@ -1210,7 +1209,7 @@
$(B)/client/tr_curve.o : $(RDIR)/tr_curve.c; $(DO_CC) $(GL_CFLAGS)
$(B)/client/tr_flares.o : $(RDIR)/tr_flares.c; $(DO_CC) $(GL_CFLAGS)
$(B)/client/tr_font.o : $(RDIR)/tr_font.c; $(DO_CC) $(GL_CFLAGS)
-$(B)/client/tr_image.o : $(RDIR)/tr_image.c; $(DO_CC) $(GL_CFLAGS) $(MINGW_CFLAGS)
+$(B)/client/tr_image.o : $(RDIR)/tr_image.c; $(DO_CC) $(GL_CFLAGS)
$(B)/client/tr_init.o : $(RDIR)/tr_init.c; $(DO_CC) $(GL_CFLAGS)
$(B)/client/tr_light.o : $(RDIR)/tr_light.c; $(DO_CC) $(GL_CFLAGS)
$(B)/client/tr_main.o : $(RDIR)/tr_main.c; $(DO_CC) $(GL_CFLAGS)
Modified: trunk/code/jpeg-6/jerror.c
===================================================================
--- trunk/code/jpeg-6/jerror.c 2007-06-02 15:26:30 UTC (rev 1095)
+++ trunk/code/jpeg-6/jerror.c 2007-06-02 19:56:43 UTC (rev 1096)
@@ -13,14 +13,14 @@
* These routines are used by both the compression and decompression code.
*/
+#include "../renderer/tr_local.h"
+
/* this is not a core library module, so it doesn't define JPEG_INTERNALS */
#include "jinclude.h"
#include "jpeglib.h"
#include "jversion.h"
#include "jerror.h"
-#include "../renderer/tr_local.h"
-
#ifndef EXIT_FAILURE /* define exit() codes if not provided */
#define EXIT_FAILURE 1
#endif
Modified: trunk/code/jpeg-6/jmemnobs.c
===================================================================
--- trunk/code/jpeg-6/jmemnobs.c 2007-06-02 15:26:30 UTC (rev 1095)
+++ trunk/code/jpeg-6/jmemnobs.c 2007-06-02 19:56:43 UTC (rev 1096)
@@ -15,13 +15,13 @@
* Note that the max_memory_to_use option is ignored by this implementation.
*/
+#include "../renderer/tr_local.h"
+
#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
#include "jmemsys.h" /* import the system-dependent declarations */
-#include "../renderer/tr_local.h"
-
/*
* Memory allocation and ri.Freeing are controlled by the regular library
* routines ri.Malloc() and ri.Free().
Modified: trunk/code/jpeg-6/jmorecfg.h
===================================================================
--- trunk/code/jpeg-6/jmorecfg.h 2007-06-02 15:26:30 UTC (rev 1095)
+++ trunk/code/jpeg-6/jmorecfg.h 2007-06-02 19:56:43 UTC (rev 1096)
@@ -149,7 +149,10 @@
typedef unsigned int UINT16;
#endif /* HAVE_UNSIGNED_SHORT */
-#ifndef DONT_TYPEDEF_INT32
+/* INT32 must hold at least signed 32-bit values. */
+
+/* MinGW basetsd.h defines INT32 - don't redefine it */
+#if !(defined __MINGW32__ && defined _BASETSD_H)
typedef long INT32;
#endif
@@ -159,12 +162,6 @@
typedef short INT16;
#endif
-/* INT32 must hold at least signed 32-bit values. */
-
-//#ifndef XMD_H /* X11/xmd.h correctly defines INT32 */
-//typedef long INT32;
-//#endif
-
/* Datatype used for image dimensions. The JPEG standard only supports
* images up to 64K*64K due to 16-bit fields in SOF markers. Therefore
* "unsigned int" is sufficient on all machines. However, if you need to
More information about the quake3-commits
mailing list