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
pull/2886/head
Behdad Esfahbod 4 years ago committed by GitHub
parent dbcf2f417f
commit 7cb22ba7eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/hb-blob.cc
  2. 1
      src/hb-coretext.cc
  3. 3
      src/hb-ot-color.cc
  4. 20
      src/hb.hh
  5. 2
      src/test-buffer-serialize.cc
  6. 2
      src/test-gpos-size-params.cc
  7. 2
      src/test-gsub-would-substitute.cc
  8. 3
      src/test-ot-glyphname.cc
  9. 3
      src/test-ot-meta.cc
  10. 3
      src/test-ot-name.cc
  11. 4
      src/test.cc

@ -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

@ -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…
Cancel
Save