Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1614:702de58e9ef8 | 1615:38da4aa23b7c |
---|---|
493 # define API APIENTRY __declspec(dllimport) | 493 # define API APIENTRY __declspec(dllimport) |
494 # endif | 494 # endif |
495 # else | 495 # else |
496 # define API _cdecl | 496 # define API _cdecl |
497 #endif | 497 #endif |
498 #endif | |
499 | |
500 /* With Visual C we need to make sure we are in UTF8 space | |
501 * to prevent compilation errors with UTF-8 encoded literals. | |
502 */ | |
503 #ifdef MSVC | |
504 #pragma execution_character_set("utf-8") | |
498 #endif | 505 #endif |
499 | 506 |
500 #define DW_DT_LEFT SS_LEFT | 507 #define DW_DT_LEFT SS_LEFT |
501 #define DW_DT_QUERYEXTENT 0 | 508 #define DW_DT_QUERYEXTENT 0 |
502 #define DW_DT_UNDERSCORE 0 | 509 #define DW_DT_UNDERSCORE 0 |