ICU-13814 Fix define for excluding renaming from VS IntelliSense, so F12 works. (#22)

In the prior change for this ticket the logic was mixed up. For IntelliSense we actually want to turn *off* the renaming defines so that VS doesn't get confused when you press F12.
This commit is contained in:
Jeff Genovy 2018-08-08 11:38:28 -07:00 committed by Shane Carr
parent b69407ffab
commit 22abf16351
No known key found for this signature in database
GPG key ID: FCED3B24AAB18B5C
2 changed files with 4 additions and 4 deletions

View file

@ -34,7 +34,7 @@
#if !U_DISABLE_RENAMING
// Disable Renaming for Visual Studio's IntelliSense feature, so that 'Go-to-Definition' (F12) will work.
#if defined(_MSC_VER) && defined(__INTELLISENSE__)
#if defined(_MSC_VER) && !defined(__INTELLISENSE__)
/* We need the U_ICU_ENTRY_POINT_RENAME definition. There's a default one in unicode/uvernum.h we can use, but we will give
the platform a chance to define it first.
@ -1830,7 +1830,7 @@
#define ztrans_setTime U_ICU_ENTRY_POINT_RENAME(ztrans_setTime)
#define ztrans_setTo U_ICU_ENTRY_POINT_RENAME(ztrans_setTo)
#endif /* defined(_MSC_VER) && defined(__INTELLISENSE__) */
#endif /* defined(_MSC_VER) && !defined(__INTELLISENSE__) */
#endif /* U_DISABLE_RENAMING */

View file

@ -107,7 +107,7 @@ print HEADER <<"EndOfHeaderComment";
#if !U_DISABLE_RENAMING
// Disable Renaming for Visual Studio's IntelliSense feature, so that 'Go-to-Definition' (F12) will work.
#if defined(_MSC_VER) && defined(__INTELLISENSE__)
#if defined(_MSC_VER) && !defined(__INTELLISENSE__)
/* We need the U_ICU_ENTRY_POINT_RENAME definition. There's a default one in unicode/uvernum.h we can use, but we will give
the platform a chance to define it first.
@ -242,7 +242,7 @@ foreach(sort keys(%CFuncs)) {
print HEADER <<"EndOfHeaderFooter";
#endif /* defined(_MSC_VER) && defined(__INTELLISENSE__) */
#endif /* defined(_MSC_VER) && !defined(__INTELLISENSE__) */
#endif /* U_DISABLE_RENAMING */
#endif /* URENAME_H */