@@ -34,31 +34,27 @@ if(NOT MSVC)
34
34
check_include_file (unistd.h HAVE_UNISTD_H )
35
35
endif ()
36
36
37
- if (MSVC )
38
- set (INLINE_KEYWORD "inline" )
39
- else ()
40
- # Inspired from /usr/share/autoconf/autoconf/c.m4
41
- foreach (inline_keyword "inline" "__inline__" "__inline" )
42
- if (NOT DEFINED C_INLINE )
43
- set (CMAKE_REQUIRED_DEFINITIONS_SAVE ${CMAKE_REQUIRED_DEFINITIONS} )
44
- set (CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
45
- "-Dinline=${inline_keyword} " )
46
- check_c_source_compiles ("
47
- typedef int foo_t;
48
- static inline foo_t static_foo() {return 0;}
49
- foo_t foo(){return 0;}
50
- int main(int argc, char *argv[]) {return 0;}"
51
- C_HAS_${inline_keyword} )
52
- set (CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS_SAVE} )
53
- if (C_HAS_${inline_keyword} )
54
- set (C_INLINE TRUE )
55
- set (INLINE_KEYWORD "${inline_keyword} " )
56
- endif ()
57
- endif ()
58
- endforeach ()
37
+ # Inspired from /usr/share/autoconf/autoconf/c.m4
38
+ foreach (inline_keyword "inline" "__inline__" "__inline" )
59
39
if (NOT DEFINED C_INLINE )
60
- set (INLINE_KEYWORD )
61
- endif ()
40
+ set (CMAKE_REQUIRED_DEFINITIONS_SAVE ${CMAKE_REQUIRED_DEFINITIONS} )
41
+ set (CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
42
+ "-Dinline=${inline_keyword} " )
43
+ check_c_source_compiles ("
44
+ typedef int foo_t;
45
+ static inline foo_t static_foo() {return 0;}
46
+ foo_t foo(){return 0;}
47
+ int main(int argc, char *argv[]) {return 0;}"
48
+ C_HAS_${inline_keyword} )
49
+ set (CMAKE_REQUIRED_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS_SAVE} )
50
+ if (C_HAS_${inline_keyword} )
51
+ set (C_INLINE TRUE )
52
+ set (INLINE_KEYWORD "${inline_keyword} " )
53
+ endif ()
54
+ endif ()
55
+ endforeach ()
56
+ if (NOT DEFINED C_INLINE )
57
+ set (INLINE_KEYWORD )
62
58
endif ()
63
59
64
60
@@ -413,6 +409,7 @@ set(lib_srcs
413
409
tif_write.c
414
410
tif_zip.c
415
411
tif_stream.cxx
412
+ snprintf.c
416
413
t4.h
417
414
tif_dir.h
418
415
tif_fax3.h
0 commit comments