summaryrefslogtreecommitdiffstats
path: root/libass
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2015-09-15 17:10:58 +0300
committerOleg Oshmyan <chortos@inbox.lv>2015-09-17 23:37:10 +0300
commitd335134ae98fac808d7b1832f4ec87cbc02e217e (patch)
tree8ce4f4b6abdb9969a02857aae567d7e1d8e037e2 /libass
parent4b86ddcaab63429c7ba52ca0db4745d11cb79b8e (diff)
downloadlibass-d335134ae98fac808d7b1832f4ec87cbc02e217e.tar.bz2
libass-d335134ae98fac808d7b1832f4ec87cbc02e217e.tar.xz
Include config.h in all source files and in no headers
This way, #include "config.h" is consistently the very first thing the compiler sees when compiling any file. Some source files currently don't use anything defined in config.h, but it's easier and less error-prone to include it now to anticipate possible future changes in those files, config.h or other headers.
Diffstat (limited to 'libass')
-rw-r--r--libass/ass_blur.c2
-rw-r--r--libass/ass_coretext.h2
-rw-r--r--libass/ass_directwrite.h2
-rw-r--r--libass/ass_drawing.c2
-rw-r--r--libass/ass_fontconfig.h2
-rw-r--r--libass/ass_rasterizer.c2
-rw-r--r--libass/ass_rasterizer_c.c2
-rw-r--r--libass/ass_shaper.h2
-rw-r--r--libass/ass_string.c2
-rw-r--r--libass/ass_string.h2
-rw-r--r--libass/ass_strtod.c2
-rw-r--r--libass/ass_utils.h2
12 files changed, 12 insertions, 12 deletions
diff --git a/libass/ass_blur.c b/libass/ass_blur.c
index 023be038..f0207254 100644
--- a/libass/ass_blur.c
+++ b/libass/ass_blur.c
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include <math.h>
#include <stdbool.h>
diff --git a/libass/ass_coretext.h b/libass/ass_coretext.h
index 07a49fa6..31edc5f7 100644
--- a/libass/ass_coretext.h
+++ b/libass/ass_coretext.h
@@ -16,8 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "config.h"
-
#include "ass_types.h"
#include "ass_fontselect.h"
diff --git a/libass/ass_directwrite.h b/libass/ass_directwrite.h
index daf17ffe..acb2e194 100644
--- a/libass/ass_directwrite.h
+++ b/libass/ass_directwrite.h
@@ -16,8 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "config.h"
-
#include "ass_types.h"
#include "ass_fontselect.h"
diff --git a/libass/ass_drawing.c b/libass/ass_drawing.c
index 4e982380..9828d575 100644
--- a/libass/ass_drawing.c
+++ b/libass/ass_drawing.c
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include <ft2build.h>
#include FT_OUTLINE_H
#include FT_BBOX_H
diff --git a/libass/ass_fontconfig.h b/libass/ass_fontconfig.h
index 6d4f5e9b..2db82d73 100644
--- a/libass/ass_fontconfig.h
+++ b/libass/ass_fontconfig.h
@@ -16,8 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "config.h"
-
#include "ass_types.h"
#include "ass_fontselect.h"
diff --git a/libass/ass_rasterizer.c b/libass/ass_rasterizer.c
index 8a0ee3bf..91c0cf1f 100644
--- a/libass/ass_rasterizer.c
+++ b/libass/ass_rasterizer.c
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include "ass_utils.h"
#include "ass_rasterizer.h"
#include <assert.h>
diff --git a/libass/ass_rasterizer_c.c b/libass/ass_rasterizer_c.c
index bd378fba..ac865453 100644
--- a/libass/ass_rasterizer_c.c
+++ b/libass/ass_rasterizer_c.c
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include "ass_utils.h"
#include "ass_rasterizer.h"
#include <assert.h>
diff --git a/libass/ass_shaper.h b/libass/ass_shaper.h
index b27cd53b..0d1dfc25 100644
--- a/libass/ass_shaper.h
+++ b/libass/ass_shaper.h
@@ -19,8 +19,6 @@
#ifndef LIBASS_SHAPER_H
#define LIBASS_SHAPER_H
-#include "config.h"
-
typedef struct ass_shaper ASS_Shaper;
#include <fribidi.h>
diff --git a/libass/ass_string.c b/libass/ass_string.c
index bb755a61..dfde674b 100644
--- a/libass/ass_string.c
+++ b/libass/ass_string.c
@@ -16,6 +16,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include "ass_string.h"
static const char lowertab[] = {
diff --git a/libass/ass_string.h b/libass/ass_string.h
index 8944804b..7cda708d 100644
--- a/libass/ass_string.h
+++ b/libass/ass_string.h
@@ -16,8 +16,6 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include "config.h"
-
#include <stdlib.h>
#ifndef ASS_STRING_H
diff --git a/libass/ass_strtod.c b/libass/ass_strtod.c
index 566f6e4a..0d5f752c 100644
--- a/libass/ass_strtod.c
+++ b/libass/ass_strtod.c
@@ -12,6 +12,8 @@
*
*/
+#include "config.h"
+
#include <stdlib.h>
#include <errno.h>
#include "ass_string.h"
diff --git a/libass/ass_utils.h b/libass/ass_utils.h
index 8295d4e0..270d3303 100644
--- a/libass/ass_utils.h
+++ b/libass/ass_utils.h
@@ -28,8 +28,6 @@
#include <errno.h>
#include <math.h>
-#include "config.h"
-
#ifdef CONFIG_ENCA
#include <enca.h>
#endif