]> granicus.if.org Git - openjpeg/commitdiff
[trunk] Avoid conflicting declarion for fseek in openjp2 vs fseek in openjpip
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 08:49:28 +0000 (08:49 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 08:49:28 +0000 (08:49 +0000)
src/lib/openjp2/opj_includes.h

index bdbb7c6cebfbb8eb5290c60485e88919327effa3..346f3a3c659ca44b22a90ecef3ad4a7922e425d7 100644 (file)
   ftello() only on systems with special LFS support since some systems
   (e.g. FreeBSD) support a 64-bit off_t by default.
 */
+#if !defined(OPENJPIP_H_) && defined(SERVER) /* server implementation uses fcgi/fseek*/
 #if defined(OPJ_HAVE_FSEEKO)
 #  define fseek  fseeko
 #  define ftell  ftello
 #endif
+#endif
 
 
 #if defined(WIN32) && !defined(Windows95) && !defined(__BORLANDC__) && \