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/gdiplus.h

    r22082 r22121  
    2222#ifdef __cplusplus
    2323
    24 namespace Gdiplus
    25 {
    26     namespace DllExports
    27     {
     24// rousseau.201602132022
     25// Wine uses mostly '.c' extensions and gcc, while Odin uses '.cpp' and g++.
     26// So under Odin, the namespaces below would be active, causing the 'Status'
     27// enum to become 'Gdiplus::Status'. For now we will disable the namespaces.
     28///namespace Gdiplus
     29///{
     30///    namespace DllExports
     31///    {
    2832#include "gdiplusmem.h"
    29     };
     33///    };
    3034
    3135#include "gdiplusenums.h"
     
    3943#include "gdiplusgpstubs.h"
    4044
    41     namespace DllExports
    42     {
     45///    namespace DllExports
     46///    {
    4347#include "gdiplusflat.h"
    44     };
    45 };
     48///    };
     49///};
    4650
    4751#else /* end c++ includes */
Note: See TracChangeset for help on using the changeset viewer.