Mercurial > dwindows
diff dw.h @ 1615:38da4aa23b7c
Fix for Visual C giving errors on UTF-8 literals in source files.
Temporarily adding some UTF-8 strings in the test program to test cross platforms.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 26 Mar 2012 22:20:55 +0000 |
parents | 71e0a3ad07f7 |
children | bbef5d25efa0 |
line wrap: on
line diff
--- a/dw.h Mon Mar 26 21:51:02 2012 +0000 +++ b/dw.h Mon Mar 26 22:20:55 2012 +0000 @@ -497,6 +497,13 @@ #endif #endif +/* With Visual C we need to make sure we are in UTF8 space + * to prevent compilation errors with UTF-8 encoded literals. + */ +#ifdef MSVC +#pragma execution_character_set("utf-8") +#endif + #define DW_DT_LEFT SS_LEFT #define DW_DT_QUERYEXTENT 0 #define DW_DT_UNDERSCORE 0