Skip to content

Commit 85fb264

Browse files
committed
Merged revision(s) 24862 from branches/OpenMPT-1.32:
[Fix] premake/libzip: Fix C23 build. ........ git-svn-id: https://source.openmpt.org/svn/openmpt/branches/OpenMPT-1.31@24863 56274372-70c3-4bfc-bfc3-4c3a0b034d27
1 parent c69e1c0 commit 85fb264

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

include/premake/contrib/libzip/mkstemp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
#endif
4444
#include <stdio.h>
4545
#include <stdlib.h>
46+
#ifdef __unix__
47+
#include <unistd.h>
48+
#endif
4649

4750
#ifndef O_BINARY
4851
#define O_BINARY 0

include/premake/contrib/libzip/zipint.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3535
*/
3636

37+
#ifdef __unix__
38+
#include <unistd.h>
39+
#endif
40+
3741
/* to have *_MAX definitions for all types when compiling with g++ */
3842
#define __STDC_LIMIT_MACROS
3943

0 commit comments

Comments
 (0)