| 1 |
*** jmorecfg.h.orig Fri Jan 15 22:02:11 1999 |
| 2 |
--- jmorecfg.h Fri Jan 15 22:02:10 1999 |
| 3 |
*************** |
| 4 |
*** 187,193 **** |
| 5 |
--- 187,210 ---- |
| 6 |
/* a function referenced thru EXTERNs: */ |
| 7 |
#define GLOBAL(type) type |
| 8 |
/* a reference to a GLOBAL function: */ |
| 9 |
+ |
| 10 |
+ /* Compile with -DJPEG_DLL for Windows DLL support */ |
| 11 |
+ #if defined(__WIN32__) && defined(JPEG_DLL) |
| 12 |
+ # define WIN32_LEAN_AND_MEAN |
| 13 |
+ # include <windows.h> |
| 14 |
+ # undef WIN32_LEAN_AND_MEAN |
| 15 |
+ # if defined(_MSC_VER) |
| 16 |
+ # define EXTERN(type) extern __declspec(dllexport) type |
| 17 |
+ # else |
| 18 |
+ # if defined(__BORLANDC__) |
| 19 |
+ # define EXTERN(type) extern type _export |
| 20 |
+ # endif |
| 21 |
+ # endif |
| 22 |
+ #endif |
| 23 |
+ |
| 24 |
+ #if !defined(EXTERN) |
| 25 |
#define EXTERN(type) extern type |
| 26 |
+ #endif |
| 27 |
|
| 28 |
|
| 29 |
/* This macro is used to declare a "method", that is, a function pointer. |
| 30 |
*************** |
| 31 |
*** 209,218 **** |
| 32 |
--- 226,237 ---- |
| 33 |
* explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol. |
| 34 |
*/ |
| 35 |
|
| 36 |
+ #ifndef FAR |
| 37 |
#ifdef NEED_FAR_POINTERS |
| 38 |
#define FAR far |
| 39 |
#else |
| 40 |
#define FAR |
| 41 |
+ #endif |
| 42 |
#endif |
| 43 |
|
| 44 |
|