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:
Emmanuele Bassi 2021-05-01 17:05:29 +01:00
parent bfd1602db9
commit bd13841257
27 changed files with 1 additions and 55 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -43,9 +43,7 @@
#include "cairo.h"
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if HAVE_LOCKDEP
#include <lockdep.h>

View file

@ -39,9 +39,7 @@
#include "cairo.h"
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if HAVE_STDINT_H
# include <stdint.h>

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -23,9 +23,7 @@
* Author: Benjamin Otte <otte@redhat.com>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <limits.h>

View file

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

View file

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

View file

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

View file

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

View file

@ -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() */

View file

@ -24,9 +24,7 @@
* Behdad Esfahbod <behdad@behdad.org>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "cairo-test.h"

View file

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

View file

@ -1,9 +1,7 @@
/* Generated data (by glib-mkenums) */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "cairo-gobject.h"

View file

@ -34,9 +34,7 @@
* Benjamin Otte <otte@redhat.com>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "cairo-gobject.h"

View file

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

View file

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

View file

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

View file

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

View file

@ -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. */

View file

@ -1,6 +1,4 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <cairo-xml.h>
#include <cairo-script-interpreter.h>