fix building with gcc 4.x

This commit is contained in:
Gremlin from Kremlin
2009-04-04 09:51:04 +00:00
parent 7f469be929
commit 5d1ed88a16
15 changed files with 32 additions and 10 deletions

View File

@@ -31,6 +31,7 @@
// ------------------------------------------------------------------
#include <limits.h>
#include <gdefs.h>

View File

@@ -25,6 +25,8 @@
// Debugging and logging.
// ------------------------------------------------------------------
#include <string.h>
#include <stdio.h>
#include <gutlmisc.h>
#include <gfilutil.h>
#include <gdbgerr.h>

View File

@@ -33,7 +33,6 @@
// ------------------------------------------------------------------
#include <gdefs.h>

View File

@@ -31,6 +31,10 @@
#define __gdefs_h
/* ------------------------------------------------------------------ */
#include <stdlib.h>
#include <malloc.h>
#include <string.h>
#include <limits.h>
#include <gcmpall.h>
#ifdef __WIN32__
@@ -44,7 +48,6 @@ typedef char TCHAR;
#endif
#ifdef _MSC_VER
# include <windows.h>
# include <limits.h>
#elif defined(__MINGW32__) || defined(__CYGWIN__)
# include <stdint.h>
#endif
@@ -53,6 +56,9 @@ typedef char TCHAR;
#define ARRAYSIZE(A) sizeof(A)/sizeof((A)[0])
#endif
#ifndef INT_MAX
#define INT_MAX 214783647
#endif
/* ------------------------------------------------------------------
// Disable some MS Visual C warnings */

View File

@@ -34,11 +34,17 @@
#if defined (__WIN32__)
#include <windows.h>
#else
#include <sys/param.h>
#endif
#ifndef _MAX_PATH
#define _MAX_PATH 256
#endif
#ifndef PATH_MAX
#define PATH_MAX _MAX_PATH
#endif
#endif
const uint SCHECKET_TYPE_UNKNOWN = 0;
const uint SCHECKET_TYPE_MSSPELL = 1;

View File

@@ -31,6 +31,8 @@
// ------------------------------------------------------------------
#include <string.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -47,6 +49,7 @@
#if !defined(__UNIX__)
#include <io.h>
#endif
#include <gdefs.h>
// ------------------------------------------------------------------M

View File

@@ -33,7 +33,7 @@
#include <gdefs.h>
#include <string>
#include <stdlib.h>
// ------------------------------------------------------------------
// FTN contants

View File

@@ -31,6 +31,7 @@
// ------------------------------------------------------------------
#include <stdlib.h>
#include <gdefs.h>
#if defined(__MSDOS__)
#include <gmemi86.h>

View File

@@ -34,6 +34,7 @@
#include <string>
#include <vector>
#include <stdlib.h>
#include <gctype.h>
#include <cstring>
#include <gdefs.h>