ref: 1eff26319fbc55f1b521247b6d942a925b624173
parent: c939c7360895ad2b46d3606fd942ca30d846e781
author: Ron <ron@debian.org>
date: Sat Jun 29 02:28:43 EDT 2013
Switch to using config.h for configuration options The main motivation for this is it ensures the files will actually be rebuilt if the configuration options are changed.
--- a/configure.ac
+++ b/configure.ac
@@ -155,6 +155,7 @@
opusurl-uninstalled.pc
doc/Doxyfile
])
+AC_CONFIG_HEADERS([config.h])
AC_OUTPUT
AC_MSG_NOTICE([
--- a/examples/opusfile_example.c
+++ b/examples/opusfile_example.c
@@ -9,6 +9,10 @@
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
* *
********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/*For fileno()*/
#if !defined(_POSIX_SOURCE)
# define _POSIX_SOURCE 1
--- a/examples/seeking_example.c
+++ b/examples/seeking_example.c
@@ -9,6 +9,10 @@
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
* *
********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/*For fileno()*/
#if !defined(_POSIX_SOURCE)
# define _POSIX_SOURCE 1
--- a/src/http.c
+++ b/src/http.c
@@ -9,6 +9,10 @@
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
* *
********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "internal.h"
#include <ctype.h>
#include <errno.h>
--- a/src/info.c
+++ b/src/info.c
@@ -9,6 +9,10 @@
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
* *
********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "internal.h"
#include <limits.h>
#include <string.h>
--- a/src/internal.c
+++ b/src/internal.c
@@ -9,6 +9,10 @@
* by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
* *
********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "internal.h"
#if defined(OP_ENABLE_ASSERTIONS)
--- a/src/opusfile.c
+++ b/src/opusfile.c
@@ -14,6 +14,10 @@
last mod: $Id: vorbisfile.c 17573 2010-10-27 14:53:59Z xiphmont $
********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "internal.h"
#include <stdio.h>
#include <stdlib.h>
--- a/src/stream.c
+++ b/src/stream.c
@@ -14,6 +14,10 @@
last mod: $Id: vorbisfile.c 17573 2010-10-27 14:53:59Z xiphmont $
********************************************************************/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "internal.h"
#include <sys/types.h>
#include <stdio.h>
--- a/src/wincerts.c
+++ b/src/wincerts.c
@@ -16,6 +16,10 @@
[1] <http://rt.openssl.org/Ticket/Display.html?id=2158>*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include "internal.h"
#if defined(OP_ENABLE_HTTP)&&defined(_WIN32)
/*You must include windows.h before wincrypt.h and x509.h.*/