Commit graph

24 commits

Author SHA1 Message Date
Evan Miller
b62653f382 Add image buffers without a temporary file
Use fmemopen to create an in-memory FILE for reading in image
attributes. This avoids creating a separate temporary file for every
image added to the worksheet.

Passing NULL as the first argument creates a buffer managed by fmemopen.
According to the system documentation, fclose will free the buffer, so
no further changes are needed.

fmemopen is defined by POSIX.1-2008, and on some platforms requires
_POSIX_C_SOURCE set to 200809L or greater. This is conditionally set in
the file (src/worksheet.c) where fmemopen is used.

This change includes a new USE_FMEMOPEN option for both CMake and make,
following the tradition set by USE_STANDARD_TMPFILE etc. This new option
is enabled on Travis.

See #287 #288
2020-05-08 13:48:12 +01:00
John McNamara
b0738e2ba9 Addition of Openwall MD5 library.
Imported from:
https://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
2019-12-24 00:27:41 +00:00
John McNamara
d85b186ece Changes to Cmake config for compatibility with vcpkg. 2019-12-23 16:33:55 +00:00
myd7349
f5ba33c0f6 CMake: Add /utf-8 MSVC compiler option for non-UTF-8 locales
CMake: Remove unknown option /O0
2019-09-16 22:48:56 +01:00
Alex Huszagh
153785ba83 Patch for issue #243, by specifying the new policy for <PackageName>_ROOT. 2019-09-08 19:46:11 +01:00
John Colvin
07fa7c59ac quote pdb paths 2019-08-30 13:19:44 +01:00
Taylor Holberton
d2c101cc5d CMake: Removed debug statement 2019-08-01 23:49:28 +01:00
Alexander Huszagh
c74bea700a Fix cmake pdb renaming 2018-07-18 13:42:52 +01:00
Dirk Vanden Boer
b616fb59ff Don't hardcode msvc runtime in cmake (#178)
Make msvc runtime optional in cmake.
2018-05-21 10:36:04 +01:00
Alex Huszagh
7e64f0fcd1 Add multiarch support and build toolchains for i686.
Fix #166
2018-04-27 20:52:25 +01:00
Remi Collet
b5a7c50255 Bump cmake required version.
Fix #168
2018-04-27 20:05:34 +01:00
Remi Collet
62ec2e75f8 Use GNUInstallDirs cmake module.
Fix #166
2018-04-27 20:03:51 +01:00
John McNamara
e5fa989ee8 Fix for Windows cmake prefix folder name. 2018-03-14 00:52:12 +00:00
Alex Huszagh
4d7db9abe5 Add system minizip support to CMakeLists 2017-10-23 18:21:40 -07:00
Alex Huszagh
a9210bc04b Simplified and more elegant CMakeLists 2017-10-23 18:12:50 -07:00
Alex Huszagh
282f828892 Patch to install DLL to bind dir 2017-10-23 14:57:06 -07:00
Alex Huszagh
6c7c15a978 Bug fixes for CMakeLists and CI for the CMakelists to patch #115 2017-10-19 22:10:59 -07:00
Alex Huszagh
a975b41705 Patch for MSVC CRT secure warnings 2017-10-18 09:57:14 -07:00
Alex Huszagh
bf6e50d6b2 Link ZLIB to library (required for shared libraries) 2017-10-17 20:18:33 -07:00
John McNamara
f256dc2ae9 Fix for modified zconf.h on Gentoo.
Issue #116
2017-08-12 14:50:31 +01:00
Alex Huszagh
de4afb49f5 Updated CMakeLists to fix iowin32.c with MSVC 2017-07-10 14:03:08 -07:00
Jim Z. Shi
9a78c323a9 improve cmake file for MSVC
- optional project and binary name
- optimize output folder tree for MSVC configurations
- fix compiler flags issues for MSVC
- fix minor issue when findzlib
2017-04-20 15:42:54 +10:00
John McNamara
6c36fc4ba1 Fix typo in Cmake static build target.
Fix minor typo in Cmake static BUILD_STATIC target.
2017-03-28 09:54:58 +01:00
Alex Huszagh
77cb2f5c86 Added support for a CMake build system. 2017-03-09 10:28:32 -08:00