Skip to content

Commit 53b2068

Browse files
authored
Merge pull request #18 from Blackflexxy/master
Better fix for building on mac
2 parents 713b79c + 7b43a30 commit 53b2068

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

delaycut.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ win32-msvc* {
4444

4545
macx {
4646
ICON = src/icon.icns
47+
#If you are using qt from brew, remove line below
48+
QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
49+
QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15
4750
}
4851

4952
QMAKE_CLEAN += qrc_icon_ico.cpp \

src/dc_types.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,6 @@
1717
along with DelayCut. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
/*fix apple sillicon build*/
21-
22-
#ifdef __APPLE__
23-
#define stat64 stat
24-
#define fstat64 fstat
25-
#endif
26-
2720
#ifndef DC_TYPES_H
2821
#define DC_TYPES_H
2922

src/delayac3.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@
3030
#include <QFileInfo>
3131
#include <QThread>
3232

33+
/* Probably better fix for building on mac */
34+
#if defined(__APPLE__)
35+
#include <sys/cdefs.h>
36+
#endif
37+
#if defined(__APPLE__) && defined(_DARWIN_FEATURE_ONLY_64_BIT_INODE)
38+
#define stat64 stat
39+
#define fstat64 fstat
40+
#endif
41+
3342
#define NUMREAD 8
3443
#define MAXBYTES_PER_FRAME 2*1280
3544
#define MAXLOGERRORS 100

0 commit comments

Comments
 (0)