mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 01:33:09 +00:00
See ziglang/fetch-them-macos-headers#2 for more details. The path forward looks like one of the following: * Ony provide headers for the oldest supported macOS (currently 10.13 but soon to be bumped to 10.14). * Provide headers for multiple versions, and select based on the Zig target OS version range minimum. * Don't try to provide macOS headers. If we don't tackle the version problem, we would have to re-introduce the ability to detect and depend on native system headers if we wanted to support C/C++ code that used newer OS definitions. This patch also adds support for `#include <mach/mach_time.h>`. Also related: #5236
10 lines
340 B
C
10 lines
340 B
C
/* This is the `system' limits.h, independent of any particular
|
|
* compiler. GCC provides its own limits.h which can be found in
|
|
* /usr/lib/gcc, although it is not very informative.
|
|
* This file is public domain. */
|
|
#if defined (__i386__) || defined(__x86_64__)
|
|
#include <i386/limits.h>
|
|
#else
|
|
#error architecture not supported
|
|
#endif
|