Skip to content

Commit 20375ce

Browse files
authored
Merge pull request #274 from Architector4/patch-minizip-import
change #include <unzip.h> to #include <minizip/unzip.h>
2 parents 91b919e + 05bf7b5 commit 20375ce

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

Source/Managers/ActivityMan.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,13 @@
2525

2626
#include "MusicMan.h"
2727

28+
#ifdef SYSTEM_MINIZIP
29+
#include <minizip/zip.h>
30+
#include <minizip/unzip.h>
31+
#else
2832
#include "zip.h"
2933
#include "unzip.h"
34+
#endif
3035

3136
#include "tracy/Tracy.hpp"
3237

Source/Menus/SaveLoadMenuGUI.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@
2121

2222
#include <execution>
2323

24+
#ifdef SYSTEM_MINIZIP
25+
#include <minizip/zip.h>
26+
#include <minizip/unzip.h>
27+
#else
2428
#include "zip.h"
2529
#include "unzip.h"
30+
#endif
2631

2732
using namespace RTE;
2833

Source/System/System.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
#include "System.h"
22

33
#include "RTETools.h"
4+
#ifdef SYSTEM_MINIZIP
5+
#include <minizip/unzip.h>
6+
#else
47
#include "unzip.h"
8+
#endif
59

610
#include "RTEError.h"
711

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ if host_machine.system() in ['linux','darwin']
185185
dependency('tbb'),
186186
dependency('gl')
187187
]
188+
preprocessor_flags+=['-DSYSTEM_MINIZIP']
188189
if host_machine.system()=='darwin'
189190
deps += dependency('appleframeworks', modules: ['Foundation'])
190191
endif

0 commit comments

Comments
 (0)