allow compilation on WIN32 platforms.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@577 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
18498c43d2
commit
483170acc5
@ -67,7 +67,7 @@ static char SccsId[] = "%W% %G%";
|
|||||||
#if !HAVE_STRNCPY
|
#if !HAVE_STRNCPY
|
||||||
#define strncpy(X,Y,Z) strcpy(X,Y)
|
#define strncpy(X,Y,Z) strcpy(X,Y)
|
||||||
#endif
|
#endif
|
||||||
#if _MSC_VER
|
#if _MSC_VER || defined(__MINGW32__)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
#if _MSC_VER || defined(__MINGW32__)
|
#if _MSC_VER || defined(__MINGW32__)
|
||||||
|
@ -42,6 +42,12 @@ static char SccsId[] = "@(#)scanner.c 1.2";
|
|||||||
#include "yapio.h"
|
#include "yapio.h"
|
||||||
#include "alloc.h"
|
#include "alloc.h"
|
||||||
#include "eval.h"
|
#include "eval.h"
|
||||||
|
#if _MSC_VER || defined(__MINGW32__)
|
||||||
|
#if HAVE_FINITE==1
|
||||||
|
#undef HAVE_FINITE
|
||||||
|
#endif
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
#include "iopreds.h"
|
#include "iopreds.h"
|
||||||
#if HAVE_STRING_H
|
#if HAVE_STRING_H
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -51,11 +51,14 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#if defined(_WIN32) || defined(__CYGWIN__)
|
||||||
#ifdef NO_DYN
|
#ifdef NO_DYN
|
||||||
#undef NO_DYN
|
#undef NO_DYN
|
||||||
#define LOAD_DLL 1
|
#define LOAD_DLL 1
|
||||||
#endif
|
#endif
|
||||||
|
#if LOAD_DL
|
||||||
|
#undef LOAD_DL
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __hpux
|
#ifdef __hpux
|
||||||
|
Reference in New Issue
Block a user