nanogui@linuxhacker.org

nanogui@linuxhacker.org


Subject: [patch] ERROR redefinition problems in VxWorks
From: Brent Thompson
Date: Mon, 09 Oct 2000 11:22:04 -0500

In order to override some macro redefinition problems I've
been having in VxWorks, I've made the following change to
<wingdi.h>.  If ERROR is already defined (in my case, by
the VxWorks header files), then undefine it in order to
use the Microwindows version of it.

BAT
-- 
Brent A. Thompson, Next Level Communications <www.nlc.com>
1776 22nd Street #100, West Des Moines, IA 50266-1444
EMail: <Thompson@nlc.com>, Phone: (515)991-3853


*** wingdi.h	Tue Sep 19 11:06:58 2000
--- wingdi.h_0.88	Mon Oct  9 11:13:54 2000
***************
*** 320,331 ****
  #define NULLREGION		MWREGION_NULL
  #define SIMPLEREGION		MWREGION_SIMPLE
  #define COMPLEXREGION		MWREGION_COMPLEX
- 
- #ifdef ERROR
- #undef ERROR
- #endif
  #define ERROR			ERRORREGION
- 
  #define RGN_ERROR		ERRORREGION
  
  /* CombineRgn() Styles */
--- 320,326 ----


nanogui@linuxhacker.org