File: jmorecfg.h.diff

package info (click to toggle)
libtk-img 1%3A1.3-15etch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 20,144 kB
  • ctags: 14,513
  • sloc: ansic: 110,000; sh: 65,326; tcl: 2,844; asm: 996; cpp: 560; pascal: 536; makefile: 436
file content (44 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
*** jmorecfg.h.orig	Fri Jan 15 22:02:11 1999
--- jmorecfg.h	Fri Jan 15 22:02:10 1999
***************
*** 187,193 ****
--- 187,210 ----
  /* a function referenced thru EXTERNs: */
  #define GLOBAL(type)		type
  /* a reference to a GLOBAL function: */
+ 
+ /* Compile with -DJPEG_DLL for Windows DLL support */
+ #if defined(__WIN32__) && defined(JPEG_DLL)
+ #  define WIN32_LEAN_AND_MEAN
+ #  include <windows.h>
+ #  undef WIN32_LEAN_AND_MEAN
+ #  if defined(_MSC_VER)
+ #    define EXTERN(type) extern __declspec(dllexport) type
+ #  else
+ #    if defined(__BORLANDC__)
+ #	define EXTERN(type) extern type _export
+ #    endif
+ #  endif
+ #endif
+ 
+ #if !defined(EXTERN)
  #define EXTERN(type)		extern type
+ #endif
  
  
  /* This macro is used to declare a "method", that is, a function pointer.
***************
*** 209,218 ****
--- 226,237 ----
   * explicit coding is needed; see uses of the NEED_FAR_POINTERS symbol.
   */
  
+ #ifndef FAR
  #ifdef NEED_FAR_POINTERS
  #define FAR  far
  #else
  #define FAR
+ #endif
  #endif