mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-18 12:00:41 +02:00
[perf] Check availability before including nonstandard headers
This commit is contained in:
parent
fbc8bf0503
commit
8ea48710dc
3 changed files with 11 additions and 1 deletions
|
|
@ -608,6 +608,10 @@ AC_CHECK_HEADERS([sched.h], [
|
|||
])
|
||||
])
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl Checks for misc headers
|
||||
AC_CHECK_HEADERS([libgen.h])
|
||||
|
||||
dnl ===========================================================================
|
||||
dnl check compiler flags
|
||||
AC_DEFUN([CAIRO_CC_TRY_FLAG], [
|
||||
|
|
|
|||
|
|
@ -38,7 +38,9 @@
|
|||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <assert.h>
|
||||
#ifdef HAVE_LIBGEN_H
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
typedef struct _test_report {
|
||||
int id;
|
||||
|
|
|
|||
|
|
@ -27,12 +27,16 @@
|
|||
*/
|
||||
|
||||
#include "cairo-perf.h"
|
||||
#include "config.h"
|
||||
|
||||
/* For getopt */
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
/* For basename */
|
||||
#ifdef HAVE_LIBGEN_H
|
||||
#include <libgen.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_FCFINI
|
||||
#include <fontconfig/fontconfig.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue