Add propper check for stdint.h

이 커밋은 다음에 포함됨:
klondike
2014-08-05 10:48:42 +02:00
커밋한 사람 Jan Vidar Krey
부모 bfdf707490
커밋 d33695435b
2개의 변경된 파일과 3개의 추가작업 그리고 1개의 파일을 삭제
+1
파일 보기
@@ -64,6 +64,7 @@ if (MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
check_include_file(stdint.h HAVE_STDINT_H)
check_include_file(sys/types.h HAVE_SYS_TYPES_H)
if (HAVE_SYS_TYPES_H)
set (CMAKE_EXTRA_INCLUDE_FILES ${CMAKE_EXTRA_INCLUDE_FILES} "sys/types.h")
+2 -1
파일 보기
@@ -61,7 +61,8 @@
#include <errno.h>
#include <fcntl.h>
#ifndef __sun__
#cmakedefine HAVE_STDINT_H
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif