Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From a5cea22294a9acb6eed955bd415f562a6cc36482 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 22 Mar 2017 11:54:23 -0700 |
| 4 | Subject: [PATCH] basic.h: Use c99 supported stdint types |
| 5 | |
| 6 | include stdint.h for getting the definitions for int types |
| 7 | |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 8 | Upstream-Status: Pending |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | --- |
| 11 | basics.h | 17 +++++++++-------- |
| 12 | 1 file changed, 9 insertions(+), 8 deletions(-) |
| 13 | |
| 14 | diff --git a/basics.h b/basics.h |
| 15 | index 643d96e..1dc2fa7 100644 |
| 16 | --- a/basics.h |
| 17 | +++ b/basics.h |
| 18 | @@ -46,17 +46,18 @@ |
| 19 | |
| 20 | #include <assert.h> |
| 21 | #include <stdio.h> |
| 22 | +#include <stdint.h> |
| 23 | |
| 24 | #include "ladspa.h" |
| 25 | |
| 26 | -typedef __int8_t int8; |
| 27 | -typedef __uint8_t uint8; |
| 28 | -typedef __int16_t int16; |
| 29 | -typedef __uint16_t uint16; |
| 30 | -typedef __int32_t int32; |
| 31 | -typedef __uint32_t uint32; |
| 32 | -typedef __int64_t int64; |
| 33 | -typedef __uint64_t uint64; |
| 34 | +typedef int8_t int8; |
| 35 | +typedef uint8_t uint8; |
| 36 | +typedef int16_t int16; |
| 37 | +typedef uint16_t uint16; |
| 38 | +typedef int32_t int32; |
| 39 | +typedef uint32_t uint32; |
| 40 | +typedef int64_t int64; |
| 41 | +typedef uint64_t uint64; |
| 42 | |
| 43 | #define MIN_GAIN 1e-6 /* -120 dB */ |
| 44 | /* smallest non-denormal 32 bit IEEE float is 1.18e-38 */ |
| 45 | -- |
| 46 | 2.12.0 |
| 47 | |