Skip to content

Commit dd28ab6

Browse files
committed
Replace __uint32_t with uint32_t everywhere
__uint32_t is non-standard and not available on at least musl libc
1 parent c9c6fd6 commit dd28ab6

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

include/openlibm_fenv_powerpc.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
2929
#ifndef _FENV_H_
3030
#define _FENV_H_
3131

32+
#include <stdint.h>
3233
#include <sys/types.h>
3334

3435
#ifndef __fenv_static
3536
#define __fenv_static static
3637
#endif
3738

38-
typedef __uint32_t fenv_t;
39-
typedef __uint32_t fexcept_t;
39+
typedef uint32_t fenv_t;
40+
typedef uint32_t fexcept_t;
4041

4142
/* Exception flags */
4243
#define FE_INEXACT 0x02000000
@@ -99,9 +100,9 @@ union __fpscr {
99100
struct {
100101
#if defined(__BYTE_ORDER__) && (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
101102
fenv_t __reg;
102-
__uint32_t __junk;
103+
uint32_t __junk;
103104
#else
104-
__uint32_t __junk;
105+
uint32_t __junk;
105106
fenv_t __reg;
106107
#endif
107108
} __bits;

include/openlibm_fenv_s390.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
2929
#ifndef _FENV_H_
3030
#define _FENV_H_
3131

32+
#include <stdint.h>
3233
#include <sys/types.h>
3334

3435
#ifndef __fenv_static
3536
#define __fenv_static static
3637
#endif
3738

38-
typedef __uint32_t fenv_t;
39-
typedef __uint32_t fexcept_t;
39+
typedef uint32_t fenv_t;
40+
typedef uint32_t fexcept_t;
4041

4142
/* Exception flags */
4243
#define FE_INEXACT 0x080000

0 commit comments

Comments
 (0)