mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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
This commit is contained in:
parent
848a4d7487
commit
e2e2ce79e2
5 changed files with 13 additions and 9 deletions
|
|
@ -28,9 +28,8 @@
|
|||
#include <pulse/def.h>
|
||||
#include <pulsecore/once.h>
|
||||
|
||||
/* We have to include config.h here (for the __tls stuff), which sucks */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#ifndef PACKAGE
|
||||
#error "Please include config.h before including this file!"
|
||||
#endif
|
||||
|
||||
typedef struct pa_thread pa_thread;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue