Skip to content

Commit 7b0ff44

Browse files
authored
Merge pull request #8616 from hzeller/feature-20251011-endian
For Apple, use endian header specific for it.
2 parents 655acc6 + 939760d commit 7b0ff44

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/odb/src/gdsin/gdsin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
#include "odb/gdsin.h"
55

6+
#if defined(__APPLE__)
7+
#include <machine/endian.h>
8+
#else
69
#include <endian.h>
10+
#endif
711

812
#include <cstddef>
913
#include <cstdint>

src/odb/src/gdsout/gdsout.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33

44
#include "odb/gdsout.h"
55

6+
#if defined(__APPLE__)
7+
#include <machine/endian.h>
8+
#else
69
#include <endian.h>
10+
#endif
711

812
#include <cstdint>
913
#include <ctime>

0 commit comments

Comments
 (0)