diff --git a/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp b/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp index c14f28883c..28ef0ca788 100644 --- a/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp +++ b/extras/the jucer/src/utility/jucer_UtilityFunctions.cpp @@ -223,6 +223,9 @@ const String makeValidCppIdentifier (String s, n << words[i]; } + if (CharacterFunctions::isDigit (n[0])) + n = T("_") + n; + // make sure it's not a reserved c++ keyword.. static const tchar* const reservedWords[] = {