X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ea64e17a224208f0cbffcb214399711d3678b867..4cb122de97b40f0b6c8896f40847a7aaf762abb5:/src/jpeg/jmorecfg.h diff --git a/src/jpeg/jmorecfg.h b/src/jpeg/jmorecfg.h index 8275eb093f..54e85ec823 100644 --- a/src/jpeg/jmorecfg.h +++ b/src/jpeg/jmorecfg.h @@ -186,6 +186,16 @@ typedef unsigned int JDIMENSION; * 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: */ #define METHODDEF(type) static type /* a function used only in its module: */ @@ -194,6 +204,8 @@ typedef unsigned int JDIMENSION; #define GLOBAL(type) type /* a reference to a GLOBAL function: */ #define EXTERN(type) extern type +#endif + /* This macro is used to declare a "method", that is, a function pointer.