GCC 3.0 has not been released yet, but it is good to be prepared.
This commit is contained in:
parent
d50f64244d
commit
489cb8b758
|
@ -35,7 +35,7 @@ typedef enum
|
|||
|
||||
extern void LIBRES_RegisterResources(const wrc_resource32_t * const * Res);
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)
|
||||
#if defined(__GNUC__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
|
||||
#define WINE_CONSTRUCTOR __attribute__((constructor))
|
||||
#define HAVE_WINE_CONSTRUCTOR
|
||||
#else
|
||||
|
|
|
@ -57,7 +57,7 @@ extern "C" {
|
|||
/* Calling conventions definitions */
|
||||
|
||||
#ifdef __i386__
|
||||
# if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)
|
||||
# if defined(__GNUC__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))
|
||||
# define __stdcall __attribute__((__stdcall__))
|
||||
# define __cdecl __attribute__((__cdecl__))
|
||||
# define __RESTORE_ES __asm__ __volatile__("pushl %ds\n\tpopl %es")
|
||||
|
|
|
@ -897,7 +897,7 @@ void create_output(gen_res* top)
|
|||
/* Perform autoregistration */
|
||||
fprintf( code,
|
||||
"#ifndef __WINE__\n"
|
||||
"#if defined(__GNUC__) && (__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)\n"
|
||||
"#if defined(__GNUC__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 7)))\n"
|
||||
"static void DoIt(void) __attribute__((constructor));\n"
|
||||
"#else\n"
|
||||
"static void DoIt(void);\n"
|
||||
|
|
Loading…
Reference in New Issue