Ignore:
Timestamp:
Feb 14, 2016, 2:28:41 PM (10 years ago)
Author:
rousseau
Message:

Odin modifications needed for 'gdiplus' [odin]

Modifications:
o dcdata.h

Use 'typedef' for the enum so its more compatible with plain C.

o gdiplus.h

Disabling the namespaces is a quick-hack to get 'gdiplus.dll' to
build. A more proper fix would probably be using '-xc' for g++
when building the 'gdiplus' module.

o gdiplusflat.h

Temporarily remove the majority of prototypes so yet undefined types
do not get introduced already.

o gdiplusimaging.h

Possibly revert this mod after it is clear how to properly handle the
namespaces in 'gdiplus.h'.

o shtypes.h

Includes 'wtypes.h' which defines 'PROPID'.

o windef.h

Not sure why these 'IN','OUT','...' definitions only got defined when
WINE was *not* defined.

o winnt.h

Park Wine macros here for now. Proper include ordering needs to be
revisited anyway.

Note:
The headers for GDI+ headers were already added in rev. #22082 to
satisfy building 'swt.dll'. They also came from the wine-repo.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/swt/include/win/windef.h

    r22078 r22121  
    657657
    658658/* Define some empty macros for compatibility with Windows code. */
    659 
    660 #ifndef __WINE__
     659// rousseau.201602131406
     660// Why is this in a __WINE__ ifndef ?
     661// Macro __WINE__ is defined when compiling gdi32 and thus gdiplus, and
     662// gdiplus uses the 'IN' and 'OUT' stuff.
     663// Disabled ifndef for now.
     664///#ifndef __WINE__
    661665#define NEAR
    662666#define FAR
     
    668672#define OUT
    669673#define OPTIONAL
    670 #endif  /* __WINE__ */
     674///#endif  /* __WINE__ */
    671675
    672676/* Macro for structure packing. */
Note: See TracChangeset for help on using the changeset viewer.