Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 18715b9

Browse files
author
Matthieu Nottale
committedJan 23, 2013
JPEG_INTERNAL define inhibiting symbol export.
1 parent 5adbfb9 commit 18715b9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed
 

‎CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ find_package(qibuild)
66
qi_sanitize_compile_flags(HIDDEN_SYMBOLS)
77

88
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
9+
add_definitions(-DJPEG_INTERNAL)
910

1011
set(SOURCES
1112
jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c

‎jmorecfg.h

+2
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ typedef unsigned int JDIMENSION;
183183
/* Handle the visibility of the symbols. Under MSVC, export during
184184
* compilation, import when using them.
185185
*/
186+
#ifndef JPEG_INTERNAL
186187
# ifdef _MSC_VER
187188
# ifdef BUILDING_JPEG
188189
# define JPEG_API __declspec(dllexport)
@@ -194,6 +195,7 @@ typedef unsigned int JDIMENSION;
194195
# else
195196
# define JPEG_API
196197
# endif
198+
#endif
197199

198200

199201
/* These macros are used in all function definitions and extern declarations.

0 commit comments

Comments
 (0)
Please sign in to comment.