Changeset 21378 for trunk/include/win


Ignore:
Timestamp:
Jun 28, 2010, 10:58:22 PM (15 years ago)
Author:
dmik
Message:

Fixed invalid use of 'VOID' when compiling C++ code with GCC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/windef.h

    r21360 r21378  
    214214/* Standard data types. These are the same for emulator and library. */
    215215
     216#if defined(__GNUC__) && defined(__cplusplus)
     217/* prototypes like foo(VOID) don't work with typedef */
     218#define VOID            void
     219#else
    216220typedef void            VOID;
     221#endif
    217222typedef short           INT16;
    218223typedef unsigned short  UINT16;
Note: See TracChangeset for help on using the changeset viewer.