X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftest%2Fheaders.c;h=2e9a27412002b399b3ebb01856b60e4a8bf6dc2c;hb=5b492c8481d4dc877f59efd0f06923faece77043;hp=50b7188519ff73c3cf14780a5eb727f23fbcb7b3;hpb=42b03d10ecdcd1e9abbb73f32aa6d5bfb942eea3;p=vlc diff --git a/src/test/headers.c b/src/test/headers.c index 50b7188519..2e9a274120 100644 --- a/src/test/headers.c +++ b/src/test/headers.c @@ -24,12 +24,26 @@ /* One thing we don't check is the CPPFLAGS - these MUST be exposed publicly, * e.g. using pkg-config or the broken old vlc-config. */ +#define PACKAGE "vlc" + +/* Because we are from src/ __LIBVLC__ is defined, but we don't want that, + * as we act here as a third-party program just linking to libvlc */ +#ifdef __LIBVLC__ +# undef __LIBVLC__ +#endif + #include +#include #include #include +#include +#include +#include #include #include +#include + int main (void) { puts ("Public headers can be used for external compilation.");