Skip to content

Commit c4be2cb

Browse files
committed
Skip defines in includes
1 parent 7f04159 commit c4be2cb

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

thirdparty/flac_library/flac_include_pre.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@
6767
#include <windows.h>
6868
#endif
6969

70-
#if __APPLE__
71-
#include <TargetConditionals.h>
72-
#if TARGET_OS_IPHONE && TARGET_IPHONE_SIMULATOR
73-
#elif TARGET_OS_IPHONE
74-
#else
75-
#define TARGET_OS_OSX 1
76-
#endif
77-
#endif
78-
7970
#ifdef DEBUG
8071
#include <assert.h>
8172
#endif
@@ -90,10 +81,6 @@
9081
#define HAVE_LROUND 1
9182
#endif
9283

93-
#if TARGET_OS_OSX
94-
#define FLAC__SYS_DARWIN 1
95-
#endif
96-
9784
#ifndef SIZE_MAX
9885
#define SIZE_MAX 0xffffffff
9986
#endif
@@ -153,9 +140,6 @@
153140
#endif
154141
#endif
155142

156-
//#define flac_max(a, b) ((a) > (b) ? (a) : (b))
157-
//#define flac_min(a, b) ((a) < (b) ? (a) : (b))
158-
159143
#pragma push_macro ("DEBUG")
160144
#pragma push_macro ("NDEBUG")
161145
#undef DEBUG // (some flac code dumps debug trace if the app defines this macro)

thirdparty/flac_library/flac_library.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
upstream: https://ftp.osuosl.org/pub/xiph/releases/flac/flac-1.5.0.tar.xz
3434
license: BSD
3535
36+
defines: FLAC__NO_DLL=1 FLAC__HAS_OGG=0
37+
macDefines: FLAC__SYS_DARWIN=1
3638
searchpaths: include src src/libFLAC src/libFLAC/include
3739
3840
END_YUP_MODULE_DECLARATION
@@ -42,7 +44,4 @@
4244

4345
#pragma once
4446

45-
#define FLAC__NO_DLL 1
46-
#define FLAC__HAS_OGG 0
47-
4847
#include <FLAC/all.h>

0 commit comments

Comments
 (0)