fix building with gcc 4.x
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#include <limits.h>
|
||||
#include <gdefs.h>
|
||||
|
||||
|
||||
|
@@ -25,6 +25,8 @@
|
||||
// Debugging and logging.
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <gutlmisc.h>
|
||||
#include <gfilutil.h>
|
||||
#include <gdbgerr.h>
|
||||
|
@@ -33,7 +33,6 @@
|
||||
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#include <gdefs.h>
|
||||
|
||||
|
||||
|
@@ -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 */
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
|
@@ -33,7 +33,7 @@
|
||||
|
||||
#include <gdefs.h>
|
||||
#include <string>
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
// FTN contants
|
||||
|
@@ -31,6 +31,7 @@
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <gdefs.h>
|
||||
#if defined(__MSDOS__)
|
||||
#include <gmemi86.h>
|
||||
|
@@ -34,6 +34,7 @@
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <stdlib.h>
|
||||
#include <gctype.h>
|
||||
#include <cstring>
|
||||
#include <gdefs.h>
|
||||
|
Reference in New Issue
Block a user