Put back the static assertion b397c82 removed.

This commit is contained in:
Alcaro 2015-06-28 10:30:23 +02:00
parent e20243613e
commit bb41da24e3
3 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,8 @@
* If you save this file as UTF-8, you'll break non-english characters * If you save this file as UTF-8, you'll break non-english characters
* (e.g. German "Umlauts" and Portugese diacritics). * (e.g. German "Umlauts" and Portugese diacritics).
*/ */
extern const char encoding_test[sizeof("äÄöÖßüÜ")==7+1 ? 1 : -1]; /* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("äÄöÖßüÜ")==7+1 ? 1 : -1];
const char *menu_hash_to_str_de(uint32_t hash) const char *menu_hash_to_str_de(uint32_t hash)
{ {

View File

@ -25,7 +25,8 @@
* If you save this file as UTF-8, you'll break non-english characters * If you save this file as UTF-8, you'll break non-english characters
* (e.g. German "Umlauts" and Portugese diacritics). * (e.g. German "Umlauts" and Portugese diacritics).
*/ */
extern const char encoding_test[sizeof("àéÉèêô")==6+1 ? 1 : -1]; /* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("àéÉèêô")==6+1 ? 1 : -1];
const char *menu_hash_to_str_fr(uint32_t hash) const char *menu_hash_to_str_fr(uint32_t hash)
{ {

View File

@ -26,6 +26,8 @@
* If you save this file as UTF-8, you'll break non-english characters * If you save this file as UTF-8, you'll break non-english characters
* (e.g. German "Umlauts" and Portugese diacritics). * (e.g. German "Umlauts" and Portugese diacritics).
*/ */
/* DO NOT REMOVE THIS. If it causes build failure, it's because you saved the file as UTF-8. Read the above comment. */
extern const char force_iso_8859_1[sizeof("áÁâãçéêíÍóõú")==12+1 ? 1 : -1];
const char *menu_hash_to_str_pt(uint32_t hash) const char *menu_hash_to_str_pt(uint32_t hash)
{ {