No actual (supported) compiler lacks a definition for NULL, and it is mandated to be present in stddef.h according to the C89 standard.
Showing the changes to codec/processing (1 of 2 files). Show all
Unified · Split
| @@ -50,9 +50,8 @@ · 49 unmodified lines | ||
| 50 | 50 | #define WELSVP_NAMESPACE_BEGIN namespace nsWelsVP { |
| 51 | 51 | #define WELSVP_NAMESPACE_END } |
| 52 | 52 | |
| 53 | −#ifdef _MSC_VER | |
| 54 | 53 | #include <stddef.h> |
| 55 | −#else | |
| 54 | +#ifndef _MSC_VER | |
| 56 | 55 | #include <stdint.h> |
| 57 | 56 | #endif |
| 58 | 57 | |
| @@ -82,10 +81,6 @@ typedef float float_t ; · 23 unmodified lines | ||
| 82 | 81 | typedef double double_t ; |
| 83 | 82 | #endif |
| 84 | 83 | |
| 85 | −#ifndef NULL | |
| 86 | −#define NULL 0 | |
| 87 | −#endif | |
| 88 | − | |
| 89 | 84 | enum { |
| 90 | 85 | FALSE = 0, |
| 91 | 86 | TRUE = !FALSE |