Fix some building issues

This commit is contained in:
Max Lv
2017-03-16 14:04:05 +08:00
parent af57095cc6
commit fb53630b20
5 changed files with 28 additions and 43 deletions
+1 -15
View File
@@ -275,20 +275,6 @@
/* Define to `int' if <sys/types.h> does not define. */
#cmakedefine pid_t @pid_t@
/* Define to the equivalent of the C99 'restrict' keyword, or to
nothing if this is not supported. Do not define if restrict is
supported directly. */
#cmakedefine restrict @restrict@
/* Work around a bug in Sun C++: it does not support _Restrict or
__restrict__, even though the corresponding Sun C compiler ends up with
"#define restrict _Restrict" or "#define restrict __restrict__" in the
previous line. Perhaps some future version of Sun C++ will work with
restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
#if defined __SUNPRO_CC && !defined __RESTRICT
# define _Restrict
# define __restrict__
#endif
/* Define to `unsigned int' if <sys/types.h> does not define. */
#cmakedefine size_t unsigned int
@@ -306,4 +292,4 @@
/* Define as `fork' if `vfork' does not work. */
#cmakedefine vfork
#endif
#endif
+1 -10
View File
@@ -149,15 +149,6 @@ set(VERSION ${PACKAGE_VERSION})
# TODO Assume we got inline support
# https://cmake.org/Wiki/CMakeTestInline
# Define to the equivalent of the C99 'restrict' keyword, or to
# nothing if this is not supported. Do not define if restrict is
# supported directly.
#define restrict __restrict
if (NOT "c_restrict" IN_LIST CMAKE_C_COMPILE_FEATURES)
message("No restrict")
set(restrict __restrict)
endif ()
# Define to `int' if <sys/types.h> does not define.
# undef pid_t
# Define to the type of an unsigned integer type of width exactly 16 bits if
@@ -197,4 +188,4 @@ endif ()
# Define as `fork' if `vfork' does not work.
if (NOT HAVE_WORKING_VFORK)
set(vfork fork)
endif ()
endif ()