Fix some build warnings on macOS.
[libsub.git] / src / stl_binary_tables.h
index 1ce7d62b0e347d5d33fce75dba28826c13dba893..46214135f0b616a737e2c00fefaf2683c7c83221 100644 (file)
@@ -17,6 +17,9 @@
 
 */
 
+#ifndef LIBSUB_STL_BINARY_TABLES_H
+#define LIBSUB_STL_BINARY_TABLES_H
+
 #include <string>
 #include <map>
 #include <boost/optional.hpp>
@@ -29,13 +32,14 @@ enum DisplayStandard {
        DISPLAY_STANDARD_LEVEL_1_TELETEXT,
        DISPLAY_STANDARD_LEVEL_2_TELETEXT
 };
-       
+
 enum LanguageGroup {
        LANGUAGE_GROUP_LATIN,
        LANGUAGE_GROUP_LATIN_CYRILLIC,
        LANGUAGE_GROUP_LATIN_ARABIC,
        LANGUAGE_GROUP_LATIN_GREEK,
-       LANGUAGE_GROUP_LATIN_HEBREW
+       LANGUAGE_GROUP_LATIN_HEBREW,
+       LANGUAGE_GROUP_UTF8,
 };
 
 enum Language {
@@ -183,7 +187,7 @@ public:
                : value (v)
                , description (d)
        {}
-       
+
        T value;
        std::string description;
 };
@@ -219,7 +223,7 @@ public:
 
        boost::optional<Language> language_description_to_enum (std::string) const;
 
-private:       
+private:
        std::map<std::string, STLBinaryCode<DisplayStandard> > _display_standard_map;
        std::map<std::string, STLBinaryCode<LanguageGroup> > _language_group_map;
        std::map<std::string, STLBinaryCode<Language> > _language_map;
@@ -230,3 +234,5 @@ private:
 };
 
 }
+
+#endif