diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2017-09-02 17:50:35 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2017-09-03 08:22:08 +0930 |
commit | 6ef21aea5bb8b87f9a7e9217c316cd5e10612a62 (patch) | |
tree | 5bde6e5be8d89d36dea6b1f3cc1ce8cb0552b28d /cmake | |
parent | 048237db6a7122a5769a15c7dd3ae3680e06e9bb (diff) |
Fix cygwin 32-bit compile
poppler/goo/gfile.cc: In function ‘GBool openTempFile(GooString**, FILE**, const char*)’:
poppler/goo/gfile.cc:409:37: error: ‘mkstemp’ was not declared in this scope
fd = mkstemp((*name)->getCString());
^
poppler/goo/gfile.cc:417:39: error: ‘fdopen’ was not declared in this scope
if (fd < 0 || !(*f = fdopen(fd, mode))) {
^
poppler/goo/gfile.cc: In function ‘int Gfseek(FILE*, Goffset, int)’:
poppler/goo/gfile.cc:558:34: error: ‘fseeko’ was not declared in this scope
return fseeko(f, offset, whence);
^
poppler/goo/gfile.cc: In function ‘Goffset Gftell(FILE*)’:
poppler/goo/gfile.cc:572:18: error: ‘ftello’ was not declared in this scope
return ftello(f);
^
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/PopplerMacros.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/modules/PopplerMacros.cmake b/cmake/modules/PopplerMacros.cmake index 8e3ef399..408e6dca 100644 --- a/cmake/modules/PopplerMacros.cmake +++ b/cmake/modules/PopplerMacros.cmake @@ -108,7 +108,7 @@ if(CMAKE_COMPILER_IS_GNUCXX) set(DEFAULT_COMPILE_WARNINGS_YES "-Wall -Wcast-align -fno-exceptions -fno-check-new -fno-common") set(DEFAULT_COMPILE_WARNINGS_KDE "-Wno-long-long -Wundef -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -Wcast-align -Wconversion -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common") - set(CMAKE_CXX_FLAGS "-Wnon-virtual-dtor -Woverloaded-virtual ${CMAKE_CXX_FLAGS}") + set(CMAKE_CXX_FLAGS "-Wnon-virtual-dtor -Woverloaded-virtual -D_DEFAULT_SOURCE ${CMAKE_CXX_FLAGS}") set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "-g -O2 -fno-reorder-blocks -fno-schedule-insns -fno-inline") |