Add "typedef" to NS_ENUM declarations, fix duplicate symbol error

NS_ENUM is designed to go with typedef c.f. Apple docs: https://developer.apple.com/library/content/releasenotes/ObjectiveC/ModernizationObjC/AdoptingModernObjective-C/AdoptingModernObjective-C.html#//apple_ref/doc/uid/TP40014150-CH1-SW6

Fixes #579
This commit is contained in:
James Ide
2018-02-12 18:14:04 -08:00
parent 9af4b966aa
commit 10f8134dab
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
#ifndef TextPathMethod_h
#define TextPathMethod_h
NS_ENUM(NSInteger, TextPathMethod) {
typedef NS_ENUM(NSInteger, TextPathMethod) {
TextPathMethodAlign,
TextPathMethodStretch,
TextPathMethodDEFAULT = TextPathMethodAlign,