Skip to content

Commit

Permalink
os_types.h: Properly define types on macOS
Browse files Browse the repository at this point in the history
For more recent macOS builds, <sys/types.h> is not enought to correctly
define aliased types.

Adding <stdint.h> to include list fixes the issue, and makes building
other libraries (i.e. vorbis) for macOS again.

Signed-off-by: Francesco Giancane <francescogiancane8@gmail.com>

xiph#73
  • Loading branch information
fgiancane8 authored and sezero committed Oct 12, 2022
1 parent db5c7a4 commit 1df307e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/ogg/os_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
#elif (defined(__APPLE__) && defined(__MACH__)) /* MacOS X Framework build */

# include <sys/types.h>
# include <stdint.h>
typedef int16_t ogg_int16_t;
typedef u_int16_t ogg_uint16_t;
typedef int32_t ogg_int32_t;
Expand Down

0 comments on commit 1df307e

Please sign in to comment.