]> Creatis software - gdcm.git/commitdiff
*FIX: only one function is being exported for now ! You should use GLOBAL(return...
authormalaterre <malaterre>
Wed, 29 Oct 2003 18:24:40 +0000 (18:24 +0000)
committermalaterre <malaterre>
Wed, 29 Oct 2003 18:24:40 +0000 (18:24 +0000)
src/jpeg/ljpg/decomp.c
src/jpeg/ljpg/jpeg.h
src/jpeg/ljpg/jpegless.h

index d5cf9f484608e901aeff7a0506b2c58353834bf0..e06b4cf0cdf6b2d37a592ed3fb295201d000d096 100644 (file)
@@ -7,7 +7,7 @@
  * from the Cornell lossless JPEG code
  */
 /*
- * $Id: decomp.c,v 1.1 2003/10/21 12:08:53 jpr Exp $
+ * $Id: decomp.c,v 1.2 2003/10/29 18:24:40 malaterre Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -54,7 +54,7 @@ int ReadJpegData (Uchar *buffer, int numBytes)
 }
 
 
-short JPEGLosslessDecodeImage (StreamIN inFile, unsigned short *image16, int depth, int length)
+GLOBAL(short) JPEGLosslessDecodeImage (StreamIN inFile, unsigned short *image16, int depth, int length)
 { 
     /* Initialization */
     JpegInFile = inFile;
index f2ff7db3e1976e82c9de82cd3d04d8e121c08431..fe80d5da3ca7bd84e046ed1aead168bc25733b9b 100644 (file)
@@ -4,11 +4,18 @@
  * Basic jpeg data structure definitions.
  */
 /*
- * $Id: jpeg.h,v 1.1 2003/10/21 12:08:54 jpr Exp $
+ * $Id: jpeg.h,v 1.2 2003/10/29 18:24:40 malaterre Exp $
  */
 #ifndef _JPEG
 #define _JPEG
 
+/* a function referenced thru EXTERNs: */
+#ifdef WIN32
+  #define GLOBAL(type)         __declspec( dllexport ) type
+#else
+  #define GLOBAL(type)         type
+#endif
+
 typedef unsigned char   Uchar;
 typedef unsigned short  Ushort;
 typedef unsigned int    Uint;
index 6a198c5e179851307979e0c8cde199bf8d520cc6..bcef276a4fc57e8670730eee31472dd56b1d1376 100644 (file)
@@ -18,7 +18,7 @@
  * parts are stolen from the IJG code
  */
 /*
- * $Id: jpegless.h,v 1.1 2003/10/21 12:08:54 jpr Exp $
+ * $Id: jpegless.h,v 1.2 2003/10/29 18:24:40 malaterre Exp $
  */
 #include "jpeg.h"
 
@@ -46,7 +46,7 @@ int  verbose;         /* the verbose flag                            */
 /*
  * read a JPEG lossless (8 or 16 bit) image in a file and decode it
  */
-short JPEGLosslessDecodeImage (StreamIN inFile, unsigned short * image16, int depth, int length);
+GLOBAL(short) JPEGLosslessDecodeImage (StreamIN inFile, unsigned short * image16, int depth, int length);
 
 
 #if defined(__cplusplus)