aboutsummaryrefslogtreecommitdiff
path: root/include/compat/stdint.h
blob: dbe3539c5d083953d0d20d86573f12326c15a9a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * Public domain
 * stdint.h compatibility shim
 */

#ifdef _MSC_VER
#include <../include/stdint.h>
#else
#include_next <stdint.h>
#endif

#ifndef LIBCRYPTOCOMPAT_STDINT_H
#define LIBCRYPTOCOMPAT_STDINT_H

#ifndef SIZE_MAX
#include <limits.h>
#endif

#if !defined(HAVE_ATTRIBUTE__BOUNDED__) && !defined(__bounded__)
# define __bounded__(x, y, z)
#endif

#if !defined(HAVE_ATTRIBUTE__DEAD) && !defined(__dead)
#ifdef _MSC_VER
#define __dead      __declspec(noreturn)
#else
#define __dead      __attribute__((__noreturn__))
#endif
#endif

#endif