mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-04 04:50:31 +01:00
Drop the conditional inclusion of config.h
We *always* generate this file, and we depend on its existence. The idea behind HAVE_CONFIG_H was being able to include random files from different projects, back in a time where "libraries" were literally just random files instead of actual shared objects. Since we're not in the '80s any more, and our build system(s) define HAVE_CONFIG_H *and* generate the config.h header file, we don't need a conditional guard around its inclusion.
This commit is contained in:
parent
bfd1602db9
commit
bd13841257
27 changed files with 1 additions and 55 deletions
|
|
@ -26,9 +26,7 @@
|
|||
#ifndef _CAIRO_BOILERPLATE_H_
|
||||
#define _CAIRO_BOILERPLATE_H_
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -27,9 +27,7 @@
|
|||
* Chris Wilson <chris@chris-wilson.co.uk>
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "cairo-perf.h"
|
||||
#include "cairo-stats.h"
|
||||
|
|
|
|||
|
|
@ -39,11 +39,9 @@
|
|||
#ifndef CAIRO_ATOMIC_PRIVATE_H
|
||||
#define CAIRO_ATOMIC_PRIVATE_H
|
||||
|
||||
# include "cairo-compiler-private.h"
|
||||
#include "cairo-compiler-private.h"
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -40,9 +40,7 @@
|
|||
|
||||
#include "cairo.h"
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* Size in bytes of buffer to use off the stack per functions.
|
||||
* Mostly used by text functions. For larger allocations, they'll
|
||||
|
|
|
|||
|
|
@ -43,9 +43,7 @@
|
|||
|
||||
#include "cairo.h"
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if HAVE_LOCKDEP
|
||||
#include <lockdep.h>
|
||||
|
|
|
|||
|
|
@ -39,9 +39,7 @@
|
|||
|
||||
#include "cairo.h"
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if HAVE_STDINT_H
|
||||
# include <stdint.h>
|
||||
|
|
|
|||
|
|
@ -46,9 +46,7 @@
|
|||
#ifndef _CAIROINT_H_
|
||||
#define _CAIROINT_H_
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define cairo_public __declspec(dllexport)
|
||||
|
|
|
|||
|
|
@ -50,9 +50,7 @@
|
|||
* Author: Kristian Høgsberg <krh@redhat.com>
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
|
|
|
|||
|
|
@ -56,9 +56,7 @@
|
|||
* enough to just add a new check to the function it complained about.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
*
|
||||
* Author: Richard D. Worth <richard@theworths.org> */
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -25,9 +25,7 @@
|
|||
* Chris Wilson <chris@chris-wilson.co.uk>
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
* Author: Benjamin Otte <otte@redhat.com>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -25,9 +25,7 @@
|
|||
* Chris Wilson <chris@chris-wilson.co.uk>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
*
|
||||
* Author: Richard D. Worth <richard@theworths.org> */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -14,9 +14,7 @@
|
|||
if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "lpyramid.h"
|
||||
#include <math.h>
|
||||
|
|
|
|||
|
|
@ -27,9 +27,7 @@
|
|||
* Chris Wilson <chris@chris-wilson.co.uk>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -23,9 +23,7 @@
|
|||
* Author: Chris Wilson <chris at chris-wilson.co.uk>
|
||||
*/
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "cairo-test.h"
|
||||
#include <stdlib.h> /* drand48() */
|
||||
|
|
|
|||
|
|
@ -24,9 +24,7 @@
|
|||
* Behdad Esfahbod <behdad@behdad.org>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "cairo-test.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cairo.h>
|
||||
#include <cairo-script.h>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
|
||||
/* Generated data (by glib-mkenums) */
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "cairo-gobject.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -34,9 +34,7 @@
|
|||
* Benjamin Otte <otte@redhat.com>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "cairo-gobject.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -35,9 +35,7 @@
|
|||
#ifndef CAIRO_SCRIPT_PRIVATE_H
|
||||
#define CAIRO_SCRIPT_PRIVATE_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include "cairo-script-interpreter.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cairo.h>
|
||||
#include <cairo-script.h>
|
||||
|
|
|
|||
|
|
@ -6,9 +6,7 @@
|
|||
* delta-debugging to reduce that down to a minimal trace.)
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
|
|||
|
|
@ -45,9 +45,7 @@
|
|||
This file was part of GNU Binutils.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#define true 1
|
||||
#define false 0
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
/* The autoconf on OpenBSD 4.5 produces the malformed constant name
|
||||
* SIZEOF_VOID__ rather than SIZEOF_VOID_P. Work around that here. */
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <cairo-xml.h>
|
||||
#include <cairo-script-interpreter.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue