Fix:build:MSVC is very strict on variable defintions placement
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 27 Nov 2010 17:54:26 +0000 (17:54 +0000)
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Sat, 27 Nov 2010 17:54:26 +0000 (17:54 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3731 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/support/espeak/phonemelist.c
navit/navit/support/espeak/tr_languages.c
navit/navit/support/espeak/wave.h

index 72ac1ab..d663e2e 100755 (executable)
@@ -89,7 +89,8 @@ static int SubstitutePhonemes(Translator *tr, PHONEME_LIST2 *plist_out)
                        if(tr->langopts.phoneme_change != 0)
                        {
                                // this language does changes to phonemes after translation
-
+                               int flags;      
+                               CHANGEPH ch;
                                if(plist2->sourceix)
                                {
                                        // start of a word, find the stressed vowel
@@ -125,9 +126,7 @@ static int SubstitutePhonemes(Translator *tr, PHONEME_LIST2 *plist_out)
                                        syllable++;
                                }
        
-                               // make any language specific changes
-                               int flags;
-                               CHANGEPH ch;
+                               // make any language specific changes                           
                                flags = 0;
                                if(ix == max_stress_posn)
                                        flags |= 2;
index 092595a..2416755 100644 (file)
@@ -1155,6 +1155,8 @@ int ChangePhonemes_ru(Translator *tr, PHONEME_LIST2 *phlist, int n_ph, int index
 
        int variant;
        int vowelix;
+       int stressed;
+       int soft;
        PHONEME_TAB *prev, *next;
 
        if(ch->flags & 8)
@@ -1214,8 +1216,8 @@ PH('V','#'),PH('I','3'),PH('I','2'),PH('E','3')};
                }
                // do we need a variant of this vowel, depending on the stress and adjacent phonemes ?
                variant = -1;
-               int stressed = ch->flags & 2;
-               int soft=prev->phflags & phPALATAL;
+               stressed = ch->flags & 2;
+               soft=prev->phflags & phPALATAL;
 
                if (soft && stressed)
                        variant = 2; else
index 8b6e606..de8bf1e 100644 (file)
@@ -1,9 +1,18 @@
 #ifndef WAVE_H
 #define WAVE_H
 
+#ifdef _MSC_VER
+
+typedef __int32 int32_t;
+typedef unsigned __int32 uint32_t;
+typedef __int64 int64_t;
+typedef unsigned __int32 uint64_t;
+
+#else
 #ifndef PLATFORM_DOS
 #include "stdint.h"
 #endif
+#endif
 
 extern int option_device_number;