OS/2 linkage specification on METHODDEF macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -186,6 +186,16 @@ typedef unsigned int JDIMENSION;
|
|||||||
* or code profilers that require it.
|
* or code profilers that require it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if defined(__VISAGECPP__)
|
||||||
|
/* a function called through method pointers: */
|
||||||
|
#define METHODDEF(type) static type _Optlink
|
||||||
|
/* a function used only in its module: */
|
||||||
|
#define LOCAL(type) static type _Optlink
|
||||||
|
/* a function referenced thru EXTERNs: */
|
||||||
|
#define GLOBAL(type) type
|
||||||
|
/* a reference to a GLOBAL function: */
|
||||||
|
#define EXTERN(type) extern type _Optlink
|
||||||
|
#else
|
||||||
/* a function called through method pointers: */
|
/* a function called through method pointers: */
|
||||||
#define METHODDEF(type) static type
|
#define METHODDEF(type) static type
|
||||||
/* a function used only in its module: */
|
/* a function used only in its module: */
|
||||||
@@ -194,6 +204,8 @@ typedef unsigned int JDIMENSION;
|
|||||||
#define GLOBAL(type) type
|
#define GLOBAL(type) type
|
||||||
/* a reference to a GLOBAL function: */
|
/* a reference to a GLOBAL function: */
|
||||||
#define EXTERN(type) extern type
|
#define EXTERN(type) extern type
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* This macro is used to declare a "method", that is, a function pointer.
|
/* This macro is used to declare a "method", that is, a function pointer.
|
||||||
|
Reference in New Issue
Block a user