summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/macro.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-11 00:30:53 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-11 00:30:53 +0000
commite2e2ce79e2697ecbd36e2cf00249dc8c59af232d (patch)
tree287283a2ded7028ed7631785b707a6ff46e9bc44 /src/pulsecore/macro.h
parent848a4d7487bdce14f8231698666fb24d5397e091 (diff)
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
Diffstat (limited to 'src/pulsecore/macro.h')
-rw-r--r--src/pulsecore/macro.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/macro.h b/src/pulsecore/macro.h
index 53e52fd0..c1bdb140 100644
--- a/src/pulsecore/macro.h
+++ b/src/pulsecore/macro.h
@@ -32,6 +32,10 @@
#include <pulsecore/log.h>
+#ifndef PACKAGE
+#error "Please include config.h before including this file!"
+#endif
+
#if defined(PAGE_SIZE)
#define PA_PAGE_SIZE ((size_t) PAGE_SIZE)
#elif defined(PAGESIZE)