X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/16a12a3d27d3d3e2557bcde15365245ef2675bb4..cbf97a6cd655d44e6f7b1ffaf35be0c392532ae7:/src/jpeg/jmorecfg.h diff --git a/src/jpeg/jmorecfg.h b/src/jpeg/jmorecfg.h index 3a774dc7fb..a8fc0e7892 100644 --- a/src/jpeg/jmorecfg.h +++ b/src/jpeg/jmorecfg.h @@ -186,16 +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 +#if defined(__VISAGECPP__) && !defined(JPEGLOCAL) /* need this for /common/imagjpeg.obj but not loclly */ +/* 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: */ @@ -204,9 +204,7 @@ typedef unsigned int JDIMENSION; #define GLOBAL(type) type /* a reference to a GLOBAL function: */ #define EXTERN(type) extern type -//#endif - - +#endif /* This macro is used to declare a "method", that is, a function pointer. * We want to supply prototype parameters if the compiler can cope.