Fixed problem of duplicated define of BOOL when compiled with MinGW

This commit is contained in:
sjborley 2005-05-17 21:50:05 +00:00
parent 3c843de4ad
commit c9120c1d8c
2 changed files with 20 additions and 0 deletions

View File

@ -12,6 +12,16 @@
#include "graph.h"
#include "ftedev.h"
#include "ftedbgra.h"
/*
* The ngspice.h file included above defines BOOLEAN (via bool.h) and this
* clashes with the definition obtained from windows.h (via winnt.h).
* However, BOOLEAN is not used by this file so we can work round this problem
* by undefining BOOLEAN before including windows.h
* SJB - May 2005
*/
#undef BOOLEAN
#pragma warn -dup // wegen Redefinition von NUMCOLORS
#include <windows.h>
#include <windowsx.h>

View File

@ -12,6 +12,16 @@
#include "graph.h"
#include "ftedev.h"
#include "ftedbgra.h"
/*
* The ngspice.h file included above defines BOOLEAN (via bool.h) and this
* clashes with the definition obtained from windows.h (via winnt.h).
* However, BOOLEAN is not used by this file so we can work round this problem
* by undefining BOOLEAN before including windows.h
* SJB - May 2005
*/
#undef BOOLEAN
#pragma warn -dup
#include <windows.h>
#include <windowsx.h>