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