Fixed problem of duplicated define of BOOL when compiled with MinGW
This commit is contained in:
parent
3c843de4ad
commit
c9120c1d8c
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue