mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
Revert "Define HAVE_BOOLEAN on Windows"
This reverts commit 5e1419e6ba
. It was a
bad idea, breaking 64 bit compatiblity on Windows. It should have never
been committed...
This commit is contained in:
parent
eb879bb9b6
commit
d0d81cf3ac
1 changed files with 7 additions and 7 deletions
|
@ -28,10 +28,6 @@
|
|||
|
||||
#include "../header/local.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define HAVE_BOOLEAN
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <libjpeg/jpeglib.h>
|
||||
#include <libjpeg/jerror.h>
|
||||
|
@ -40,7 +36,9 @@
|
|||
#include <jerror.h>
|
||||
#endif
|
||||
|
||||
void jpeg_memory_src(j_decompress_ptr cinfo, unsigned char *inbuffer, unsigned long insize);
|
||||
void jpeg_memory_src(j_decompress_ptr cinfo,
|
||||
unsigned char *inbuffer,
|
||||
unsigned long insize);
|
||||
|
||||
void
|
||||
jpg_null(j_decompress_ptr cinfo)
|
||||
|
@ -64,8 +62,10 @@ jpg_skip_input_data(j_decompress_ptr cinfo, long num_bytes)
|
|||
void
|
||||
jpeg_mem_src(j_decompress_ptr cinfo, unsigned char *mem, unsigned long len)
|
||||
{
|
||||
cinfo->src = (struct jpeg_source_mgr *)(*cinfo->mem->alloc_small)((j_common_ptr)
|
||||
cinfo, JPOOL_PERMANENT, sizeof(struct jpeg_source_mgr));
|
||||
cinfo->src =
|
||||
(struct jpeg_source_mgr *)(*cinfo->mem->alloc_small)((j_common_ptr)
|
||||
cinfo,
|
||||
JPOOL_PERMANENT, sizeof(struct jpeg_source_mgr));
|
||||
cinfo->src->init_source = jpg_null;
|
||||
cinfo->src->fill_input_buffer = jpg_fill_input_buffer;
|
||||
cinfo->src->skip_input_data = jpg_skip_input_data;
|
||||
|
|
Loading…
Reference in a new issue