The actual float and double data types are defined in C89 and are usable as such without any extra typedefs. Removing the extra typedefs simplifies the compatibility typedef headers, simplifies portability and makes the code base easier to work with for people new to the library.
Showing the changes to codec/processing/src/common (1 of 4 files). Show all
Unified · Split
| @@ -76,11 +76,6 @@ typedef unsigned __int64 uint64_t ; · 75 unmodified lines | |||
| 76 | typedef char str_t ; // [comment]: specific use plain char only for character parameters | 76 | typedef char str_t ; // [comment]: specific use plain char only for character parameters |
| 77 | typedef bool bool_t ; | 77 | typedef bool bool_t ; |
| 78 | 78 | ||
| 79 | #if defined(_WIN32) || defined(_MACH_PLATFORM) || defined(__GNUC__) | ||
| 80 | typedef float float_t ; | ||
| 81 | typedef double double_t ; | ||
| 82 | #endif | ||
| 83 | |||
| 84 | enum { | 79 | enum { |
| 85 | FALSE = 0, | 80 | FALSE = 0, |
| 86 | TRUE = !FALSE | 81 | TRUE = !FALSE |