Include C headers with their C++ names (#2882)
Remove unnecessary includes. Fixes build with some known broken SDKs (Nintendo Switch?) https://en.cppreference.com/w/cpp/header Fixes https://github.com/harfbuzz/harfbuzz/pull/2881
This commit is contained in:
parent
dbcf2f417f
commit
7cb22ba7eb
|
@ -35,9 +35,6 @@
|
|||
#include <sys/mman.h>
|
||||
#endif /* HAVE_SYS_MMAN_H */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
/**
|
||||
* SECTION: hb-blob
|
||||
|
|
|
@ -34,7 +34,6 @@
|
|||
|
||||
#include "hb-coretext.h"
|
||||
#include "hb-aat-layout.hh"
|
||||
#include <math.h>
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -37,9 +37,6 @@
|
|||
#include "hb-ot-color-sbix-table.hh"
|
||||
#include "hb-ot-color-svg-table.hh"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
/**
|
||||
* SECTION:hb-ot-color
|
||||
|
|
20
src/hb.hh
20
src/hb.hh
|
@ -176,15 +176,15 @@
|
|||
#include "hb-aat.h"
|
||||
#define HB_AAT_H_IN
|
||||
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
#include <float.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <cassert>
|
||||
#include <cfloat>
|
||||
#include <climits>
|
||||
#include <cmath>
|
||||
#include <cstdarg>
|
||||
#include <cstddef>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
#if (defined(_MSC_VER) && _MSC_VER >= 1500) || defined(__MINGW32__)
|
||||
#ifdef __MINGW32_VERSION
|
||||
|
@ -391,7 +391,7 @@ extern "C" void hb_free_impl(void *ptr);
|
|||
#endif
|
||||
|
||||
#ifndef HB_NO_ERRNO
|
||||
# include <errno.h>
|
||||
# include <cerrno>
|
||||
#else
|
||||
static int HB_UNUSED _hb_errno = 0;
|
||||
# undef errno
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
#include "hb-ft.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HB_NO_OPEN
|
||||
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
|
||||
#endif
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include "hb.h"
|
||||
#include "hb-ot.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HB_NO_OPEN
|
||||
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
|
||||
#endif
|
||||
|
|
|
@ -29,8 +29,6 @@
|
|||
#include "hb.h"
|
||||
#include "hb-ot.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_FREETYPE
|
||||
#include "hb-ft.h"
|
||||
#endif
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#include "hb.hh"
|
||||
#include "hb-ot.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HB_NO_OPEN
|
||||
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
|
||||
#endif
|
||||
|
|
|
@ -25,9 +25,6 @@
|
|||
#include "hb.hh"
|
||||
#include "hb-ot.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HB_NO_OPEN
|
||||
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
|
||||
#endif
|
||||
|
|
|
@ -27,9 +27,6 @@
|
|||
#include "hb.hh"
|
||||
#include "hb-ot.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HB_NO_OPEN
|
||||
#define hb_blob_create_from_file(x) hb_blob_get_empty ()
|
||||
#endif
|
||||
|
|
|
@ -26,10 +26,6 @@
|
|||
|
||||
#include "hb.hh"
|
||||
|
||||
#include "hb.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_FREETYPE
|
||||
#include "hb-ft.h"
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue