Fixed #pragma interface/implementation handling for old compilers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -12,7 +12,14 @@
|
|||||||
#ifndef _WX_EVENT_H__
|
#ifndef _WX_EVENT_H__
|
||||||
#define _WX_EVENT_H__
|
#define _WX_EVENT_H__
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma interface "event.h"
|
#pragma interface "event.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -9,7 +9,14 @@
|
|||||||
#ifndef _WX_FS_MEM_H_
|
#ifndef _WX_FS_MEM_H_
|
||||||
#define _WX_FS_MEM_H_
|
#define _WX_FS_MEM_H_
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma interface "fs_mem.h"
|
#pragma interface "fs_mem.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -16,7 +16,14 @@
|
|||||||
// headers
|
// headers
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma interface "msgout.h"
|
#pragma interface "msgout.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -16,7 +16,14 @@
|
|||||||
// headers
|
// headers
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma interface "utils.h"
|
#pragma interface "utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -17,7 +17,14 @@
|
|||||||
// headers
|
// headers
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma implementation "event.h"
|
#pragma implementation "event.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -7,7 +7,14 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma implementation "fs_mem.h"
|
#pragma implementation "fs_mem.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -17,7 +17,14 @@
|
|||||||
// headers
|
// headers
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma implementation "msgout.h"
|
#pragma implementation "msgout.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -17,7 +17,14 @@
|
|||||||
// headers
|
// headers
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) && !defined(__EMX__)
|
||||||
|
// Some older compilers (such as EMX) cannot handle
|
||||||
|
// #pragma interface/implementation correctly, iff
|
||||||
|
// #pragma implementation is used in _two_ translation
|
||||||
|
// units (as created by e.g. event.cpp compiled for
|
||||||
|
// libwx_base and event.cpp compiled for libwx_gui_core).
|
||||||
|
// So we must not use those pragmas for those compilers in
|
||||||
|
// such files.
|
||||||
#pragma implementation "utils.h"
|
#pragma implementation "utils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user