[ot-svg] Renames `svgtypes.c' to `svgtypes.h'.

Also adds an `ifndef' check to prevent loading multiple times.
This commit is contained in:
Moazin Khatti 2019-08-23 14:54:02 +05:00
parent 253d2bad97
commit 03f7b5a6b6
3 changed files with 8 additions and 4 deletions

View File

@ -31,13 +31,13 @@ SVG_PORT_COMPILE := $(CC) $I$(subst /,$(COMPILER_SEP),$(SVG_DIR)) \
# svg renderer sources (i.e., C files)
#
SVG_DRV_SRC := $(SVG_DIR)/ftsvg.c \
$(SVG_DIR)/svgtypes.c
SVG_DRV_SRC := $(SVG_DIR)/ftsvg.c
# svg renderer headers
#
SVG_DRV_H := $(SVG_DIR)/ftsvg.h
SVG_DRV_H := $(SVG_DIR)/ftsvg.h \
$(SVG_DIR)/svgtypes.h
# svg renderer object(s)

View File

@ -18,7 +18,7 @@
#define FT_MAKE_OPTION_SINGLE_OBJECT
#include <ft2build.h>
#include "svgtypes.c"
#include "svgtypes.h"
#include "ftsvg.c"

View File

@ -15,6 +15,9 @@
*
*/
#ifndef FTSVGTYPES_H
#define FTSVGTYPES_H
#include <ft2build.h>
#include FT_INTERNAL_OBJECTS_H
#include FT_RENDER_H
@ -30,3 +33,4 @@
typedef struct SVG_RendererRec_* SVG_Renderer;
#endif