Changeset 22089 for branches/swt/include


Ignore:
Timestamp:
Mar 16, 2015, 3:09:49 PM (11 years ago)
Author:
rousseau
Message:

Probably fixed duplicate symbols with OLE ID's

On Win32 these symbols are generated in the '.data' section of the
resulting COFF32 object-module. Linking them does not introduce
duplicate symbol definitions.

On OS/2 they are generated in the '.text' section of the resulting a.out
object-module. This causes the 'weak pre-linker' to abort on duplicate
symbols. One way to work-around this is to use the 'wl.exe' linker
directly, after conversion to OMF, which treats them as warnings.

The solution in this fix hides the symbols by reducing their visibility
to module-scope. It has not yet been determined if this fix is adequate.

File:
1 edited

Legend:

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

    r4 r22089  
    22
    33/*
    4  * defines a minimum set of macros create GUID's to keep the size 
     4 * defines a minimum set of macros create GUID's to keep the size
    55 * small
    66 *
     
    2020
    2121#define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
    22         const GUID name = \
     22        static const GUID name = \
    2323        { l, w1, w2, { b1, b2,  b3,  b4,  b5,  b6,  b7,  b8 } }
    2424
    25 #endif 
     25#endif
Note: See TracChangeset for help on using the changeset viewer.