build: Fixed some mingw warnings.

This commit is contained in:
Andreas Schneider
2010-07-24 21:36:00 +02:00
parent 9973de535e
commit 5f99fed07c
2 changed files with 5 additions and 3 deletions

View File

@@ -17,9 +17,9 @@ set(SYSCONFDIR ${SYSCONF_INSTALL_DIR})
set(BINARYDIR ${CMAKE_BINARY_DIR})
set(SOURCEDIR ${CMAKE_SOURCE_DIR})
if(CMAKE_COMPILER_IS_GNUCC)
if(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW)
check_c_compiler_flag("-fvisibility=hidden" WITH_VISIBILITY_HIDDEN)
endif(CMAKE_COMPILER_IS_GNUCC)
endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW)
# HEADER FILES
check_include_file(argp.h HAVE_ARGP_H)

View File

@@ -35,7 +35,9 @@
#ifdef _WIN32
/* Imitate define of inttypes.h */
#define PRIdS "Id"
# ifndef PRIdS
# define PRIdS "Id"
# endif
# ifdef _MSC_VER
# include <stdio.h>