From: Julian Smart Date: Fri, 3 Jul 1998 16:36:10 +0000 (+0000) Subject: Added #pragmas for gcc. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0d3820b348955b748fa0ab3076f4ed9763ce4bee Added #pragmas for gcc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/config.h b/include/wx/config.h index f9eab1d2a9..d4071bd6ef 100644 --- a/include/wx/config.h +++ b/include/wx/config.h @@ -14,6 +14,10 @@ #ifndef _APPCONF_H #define _APPCONF_H +#ifdef __GNUG__ +#pragma interface "config.h" +#endif + // ---------------------------------------------------------------------------- // compile options // ---------------------------------------------------------------------------- diff --git a/include/wx/fileconf.h b/include/wx/fileconf.h index cbbb0e0de0..a2bbecb415 100644 --- a/include/wx/fileconf.h +++ b/include/wx/fileconf.h @@ -16,6 +16,10 @@ #ifndef _FILECONF_H #define _FILECONF_H +#ifdef __GNUG__ +#pragma interface "fileconf.h" +#endif + // ---------------------------------------------------------------------------- // compile options // ---------------------------------------------------------------------------- diff --git a/include/wx/generic/imaglist.h b/include/wx/generic/imaglist.h index 2007ffc5c0..3df017802e 100644 --- a/include/wx/generic/imaglist.h +++ b/include/wx/generic/imaglist.h @@ -12,7 +12,7 @@ #define __IMAGELISTH_G__ #ifdef __GNUG__ -#pragma interface +#pragma interface "imaglist.h" #endif #include "wx/defs.h" diff --git a/include/wx/generic/listctrl.h b/include/wx/generic/listctrl.h index 11e0b1034b..c574a6508e 100644 --- a/include/wx/generic/listctrl.h +++ b/include/wx/generic/listctrl.h @@ -12,7 +12,7 @@ #define __LISTCTRLH_G__ #ifdef __GNUG__ -#pragma interface +#pragma interface "listctrl.h" #endif #include "wx/defs.h" diff --git a/include/wx/generic/treectrl.h b/include/wx/generic/treectrl.h index 23bac6bddc..3dbbc06450 100644 --- a/include/wx/generic/treectrl.h +++ b/include/wx/generic/treectrl.h @@ -13,7 +13,7 @@ #define __GTKTREECTRLH_G__ #ifdef __GNUG__ -#pragma interface +#pragma interface "treectrl.h" #endif #include "wx/defs.h" diff --git a/include/wx/ipcbase.h b/include/wx/ipcbase.h index 4fb3b7b8eb..235618fdfc 100644 --- a/include/wx/ipcbase.h +++ b/include/wx/ipcbase.h @@ -12,6 +12,10 @@ #ifndef __IPCBASEH__ #define __IPCBASEH__ +#ifdef __GNUG__ +#pragma interface "ipcbase.h" +#endif + #include "wx/defs.h" #include "wx/object.h" #include "wx/string.h" diff --git a/include/wx/list.h b/include/wx/list.h index 90f773e79a..a0c42e26bc 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -13,7 +13,7 @@ #define __LISTH__ #ifdef __GNUG__ -#pragma interface +#pragma interface "list.h" #endif #include "wx/defs.h" diff --git a/include/wx/log.h b/include/wx/log.h index b5e608b77b..5f55574c01 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -13,8 +13,8 @@ #define __LOGH__ #ifdef __GNUG__ - #pragma interface -#endif //GNU C++ +#pragma interface "log.h" +#endif // ---------------------------------------------------------------------------- // constants diff --git a/include/wx/menuitem.h b/include/wx/menuitem.h index 34178c67d1..a36c0e8b86 100644 --- a/include/wx/menuitem.h +++ b/include/wx/menuitem.h @@ -12,6 +12,10 @@ #ifndef _MENUITEM_H #define _MENUITEM_H +#ifdef __GNUG__ +#pragma interface "menuitem.h" +#endif + // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- diff --git a/include/wx/msw/checklst.h b/include/wx/msw/checklst.h index a525fa9c29..71dc955261 100644 --- a/include/wx/msw/checklst.h +++ b/include/wx/msw/checklst.h @@ -12,6 +12,10 @@ #ifndef __CHECKLST_H__ #define __CHECKLST_H__ +#ifdef __GNUG__ +#pragma interface "checklst.h" +#endif + typedef unsigned int uint; #if !USE_OWNER_DRAWN diff --git a/include/wx/msw/pnghand.h b/include/wx/msw/pnghand.h index 1de5e7f75a..bb24c83fc0 100644 --- a/include/wx/msw/pnghand.h +++ b/include/wx/msw/pnghand.h @@ -9,6 +9,10 @@ // Licence: wxWindows license ///////////////////////////////////////////////////////////////////////////// +#ifdef __GNUG__ +#pragma interface "pnghand.h" +#endif + class WXDLLEXPORT wxPNGFileHandler: public wxBitmapHandler { DECLARE_DYNAMIC_CLASS(wxPNGFileHandler) diff --git a/include/wx/msw/regconf.h b/include/wx/msw/regconf.h index 387456ff1e..7277dff7f7 100644 --- a/include/wx/msw/regconf.h +++ b/include/wx/msw/regconf.h @@ -12,6 +12,10 @@ #ifndef _REGCONF_H #define _REGCONF_H +#ifdef __GNUG__ +#pragma interface "regconf.h" +#endif + // ---------------------------------------------------------------------------- // wxRegConfig // ---------------------------------------------------------------------------- diff --git a/include/wx/msw/registry.h b/include/wx/msw/registry.h index d7793ca0bc..754a2d6783 100644 --- a/include/wx/msw/registry.h +++ b/include/wx/msw/registry.h @@ -12,6 +12,10 @@ #ifndef _REGISTRY_H #define _REGISTRY_H +#ifdef __GNUG__ +#pragma interface "registry.h" +#endif + // ---------------------------------------------------------------------------- // mutable hack (see also registry.cpp) // ---------------------------------------------------------------------------- diff --git a/include/wx/msw/statbr95.h b/include/wx/msw/statbr95.h index 51006b6b85..7bc28a7fe1 100644 --- a/include/wx/msw/statbr95.h +++ b/include/wx/msw/statbr95.h @@ -12,6 +12,10 @@ #ifndef _STATBR95_H #define _STATBR95_H +#ifdef __GNUG__ +#pragma interface "statbr95.h" +#endif + #if USE_NATIVE_STATUSBAR class WXDLLEXPORT wxStatusBar95 : public wxStatusBar diff --git a/include/wx/object.h b/include/wx/object.h index 1a787a3f71..ea3b030deb 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -13,7 +13,7 @@ #define __OBJECTH__ #ifdef __GNUG__ -#pragma interface +#pragma interface "object.h" #endif #include "wx/defs.h" diff --git a/include/wx/odbc.h b/include/wx/odbc.h index 0f6756adcc..934e46270b 100644 --- a/include/wx/odbc.h +++ b/include/wx/odbc.h @@ -13,6 +13,10 @@ #if USE_ODBC +#ifdef __GNUG__ +#pragma interface "odbc.h" +#endif + #ifndef __ODBCH__ #define __ODBCH__ diff --git a/include/wx/ownerdrw.h b/include/wx/ownerdrw.h index 293a5145ea..4bc13e4e6e 100644 --- a/include/wx/ownerdrw.h +++ b/include/wx/ownerdrw.h @@ -12,6 +12,10 @@ #ifndef _OWNERDRW_H #define _OWNERDRW_H +#ifdef __GNUG__ +#pragma interface "ownerdrw.h" +#endif + typedef wxColour wxColor; typedef unsigned int uint; diff --git a/include/wx/prntbase.h b/include/wx/prntbase.h index 9e1df3b8c0..b713fbc614 100644 --- a/include/wx/prntbase.h +++ b/include/wx/prntbase.h @@ -13,7 +13,7 @@ #define __PRNTBASEH__ #ifdef __GNUG__ -#pragma interface +#pragma interface "prntbase.h" #endif #include "wx/defs.h" diff --git a/include/wx/process.h b/include/wx/process.h index cd5cf5471b..96ce4e5fb9 100644 --- a/include/wx/process.h +++ b/include/wx/process.h @@ -13,7 +13,7 @@ #define __PROCESSH__ #ifdef __GNUG__ -#pragma interface +#pragma interface "process.h" #endif #include "wx/defs.h" diff --git a/include/wx/string.h b/include/wx/string.h index 0f331da3a0..62a5730f58 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -13,7 +13,7 @@ #define __WXSTRINGH__ #ifdef __GNUG__ -#pragma interface +#pragma interface "string.h" #endif /* Dependencies (should be included before this header):