From e2e2ce79e2697ecbd36e2cf00249dc8c59af232d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 11 Sep 2007 00:30:53 +0000 Subject: Instead of including config.h from header files, check whether PACKAGE is defined and if not, fail (thus using PACKAGE as a check for inclusion of config.h) git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1799 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/pulsecore/atomic.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/pulsecore/atomic.h') diff --git a/src/pulsecore/atomic.h b/src/pulsecore/atomic.h index 0e3bfb9a..25d600c0 100644 --- a/src/pulsecore/atomic.h +++ b/src/pulsecore/atomic.h @@ -37,9 +37,8 @@ * libatomic_ops */ -/* We have to include config.h here (for the __sync stuff), which sucks */ -#ifdef HAVE_CONFIG_H -#include +#ifndef PACKAGE +#error "Please include config.h before including this file!" #endif #ifdef HAVE_ATOMIC_BUILTINS -- cgit