History

Remove fallback defines for NULL

No actual (supported) compiler lacks a definition for NULL, and it is mandated to be present in stddef.h according to the C89 standard.

Martin Storsjö committed 12 years ago

Commit f252acf1 parent 33a12092 files · +2 −10Browse files

Showing the changes to codec/processing/src/common (1 of 2 files). Show all

Unified · Split

codec/processing/src/common/typedef.h+1−6
@@ -50,9 +50,8 @@ · 49 unmodified lines
50#define WELSVP_NAMESPACE_BEGIN namespace nsWelsVP {50#define WELSVP_NAMESPACE_BEGIN namespace nsWelsVP {
51#define WELSVP_NAMESPACE_END }51#define WELSVP_NAMESPACE_END }
52 52
53#ifdef _MSC_VER
54#include <stddef.h>53#include <stddef.h>
55#else54#ifndef _MSC_VER
56#include <stdint.h>55#include <stdint.h>
57#endif56#endif
58 57
@@ -82,10 +81,6 @@ typedef float float_t ; · 23 unmodified lines
82typedef double double_t ;81typedef double double_t ;
83#endif82#endif
84 83
85#ifndef NULL
86#define NULL 0
87#endif
88
89enum {84enum {
90 FALSE = 0,85 FALSE = 0,
91 TRUE = !FALSE86 TRUE = !FALSE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t