Browse Source

[core] explicitly include sys/cdefs.h

<sys/cdefs.h> might not be included in standard headers by musl libc

x-ref:
  https://github.com/void-linux/void-packages/pull/33330/files#r725060227
  https://github.com/void-linux/void-packages/pull/33330/files#r725060227
master
Glenn Strauss 3 months ago
parent
commit
98ba0310c4
  1. 6
      src/first.h

6
src/first.h

@ -45,6 +45,12 @@
#include <sys/types.h>
#include <stddef.h>
#ifdef __has_include
#if __has_include(<sys/cdefs.h>)
#include <sys/cdefs.h>
#endif
#endif
#ifndef __BEGIN_DECLS
#ifdef __cplusplus
#define __BEGIN_DECLS extern "C" {

Loading…
Cancel
Save