Skip to content

Commit c52abb6

Browse files
committed
Makefile.am: use c11 instead of c99
c11 code is now used (static_assert) + use -D_POSIX_C_SOURCE=200809L (needed for strtok_r + PATH_MAX - also included limits.h where used)
1 parent cf5c163 commit c52abb6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ libgpujpeg_DEP = @LIBGPUJPEG_CUDA_OBJS@
4848

4949
libgpujpeg_LIB = $(libgpujpeg_DEP) -lm
5050
libgpujpeg_LD = -export-dynamic -version-info $(GPUJPEG_LIBRARY_VERSION) @GPUJPEG_LDFLAGS@ @GPUJPEG_LIBS@
51-
libgpujpeg_CFLAGS = -std=c99 -fPIC @COMMON_FLAGS@
51+
libgpujpeg_CFLAGS = -std=c11 -D_POSIX_C_SOURCE=200809L -fPIC @COMMON_FLAGS@
5252
libgpujpeg_CXXFLAGS = -fPIC @COMMON_FLAGS@
5353
#libgpujpeg_a_LINK = g++ -fPIC
5454
if STATIC

src/utils/image_delegate.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
#ifdef _WIN32
3535
#include <windows.h>
3636
#define PATH_MAX MAX_PATH
37+
#else
38+
#include <limits.h>
3739
#endif
3840

3941
#ifdef __linux__

0 commit comments

Comments
 (0)