Browse Source

use __dead macro from sys/cdefs.h

OPENBSD_6_1
Brent Cook 8 years ago
parent
commit
a7577667d6
2 changed files with 16 additions and 4 deletions
  1. +16
    -0
      include/sys/cdefs.h
  2. +0
    -4
      include/sys/types.h

+ 16
- 0
include/sys/cdefs.h View File

@ -0,0 +1,16 @@
/*
* Public domain
* sys/cdefs.h compatibility shim
*/
#include_next <sys/cdefs.h>
#ifndef LIBCOMPAT_SYS_CDEFS_H
#define LIBCOMPAT_SYS_CDEFS_H
#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
#define __dead __attribute__((__noreturn__))
#define __pure __attribute__((__const__))
#endif
#endif

+ 0
- 4
include/sys/types.h View File

@ -14,10 +14,6 @@
#include <_bsd_types.h> #include <_bsd_types.h>
#endif #endif
#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
#define __dead
#endif
#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__) #if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
# define __bounded__(x, y, z) # define __bounded__(x, y, z)
#endif #endif


Loading…
Cancel
Save