tpaviot/oce — Issue #137: No longer need to define -DWNT when using OCE
Author: jeromerobert
Created: 2011-10-21 08:58:07+00:00
State: open

Currently application which use OCE on windows need to define WNT. For example with cmake:
if(WIN32)
add_definitions(-DWNT)
endif()

It would be nice that this non standard define would be define in OCE .h. For example in oce-config.h or Standard_Macro.h:
#if (defined(_MSC_VER) || defined(__BORLANDC__) || defined(__MINGW32__))
#define WNT
#endif

This is already assumed by OCE as seen in Standard_osd_ffi.c
#if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(WNT)
#error "Wrong compiler options has been detected. Add /DWNT option for proper compilation!!!!!"
#endif