From fbb937b6807597c9ae002280c6a6278a97b701f3 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 15 Oct 2017 12:04:16 +0200 Subject: [PATCH] Don't use NULL in public headers --- src/hb-buffer.h | 4 ++-- src/hb-common.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-buffer.h b/src/hb-buffer.h index 42564bb19..a8a4b84e9 100644 --- a/src/hb-buffer.h +++ b/src/hb-buffer.h @@ -132,8 +132,8 @@ typedef struct hb_segment_properties_t { #define HB_SEGMENT_PROPERTIES_DEFAULT {HB_DIRECTION_INVALID, \ HB_SCRIPT_INVALID, \ HB_LANGUAGE_INVALID, \ - NULL, \ - NULL} + (void *) 0, \ + (void *) 0} HB_EXTERN hb_bool_t hb_segment_properties_equal (const hb_segment_properties_t *a, diff --git a/src/hb-common.h b/src/hb-common.h index 614a63aa6..26200ce12 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -134,7 +134,7 @@ hb_language_from_string (const char *str, int len); HB_EXTERN const char * hb_language_to_string (hb_language_t language); -#define HB_LANGUAGE_INVALID ((hb_language_t) NULL) +#define HB_LANGUAGE_INVALID ((hb_language_t) 0) HB_EXTERN hb_language_t hb_language_get_default (void);