synachar.pas - fix WIN32 vs. MSWINDOWS compiler defines

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@162 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2012-10-05 09:15:32 +00:00
parent 7d2ef0c457
commit cbc6f6ce1a

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 005.002.002 | | Project : Ararat Synapse | 005.002.003 |
|==============================================================================| |==============================================================================|
| Content: Charset conversion support | | Content: Charset conversion support |
|==============================================================================| |==============================================================================|
| Copyright (c)1999-2004, Lukas Gebauer | | Copyright (c)1999-2012, Lukas Gebauer |
| All rights reserved. | | All rights reserved. |
| | | |
| Redistribution and use in source and binary forms, with or without | | Redistribution and use in source and binary forms, with or without |
@ -33,7 +33,7 @@
| DAMAGE. | | DAMAGE. |
|==============================================================================| |==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).| | The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c)2000-2004. | | Portions created by Lukas Gebauer are Copyright (c)2000-2012. |
| All Rights Reserved. | | All Rights Reserved. |
|==============================================================================| |==============================================================================|
| Contributor(s): | | Contributor(s): |
@ -60,6 +60,13 @@ Internal routines knows all major charsets for Europe or America. For East-Asian
{$Q-} {$Q-}
{$H+} {$H+}
//old Delphi does not have MSWINDOWS define.
{$IFDEF WIN32}
{$IFNDEF MSWINDOWS}
{$DEFINE MSWINDOWS}
{$ENDIF}
{$ENDIF}
{$IFDEF UNICODE} {$IFDEF UNICODE}
{$WARN IMPLICIT_STRING_CAST OFF} {$WARN IMPLICIT_STRING_CAST OFF}
{$WARN IMPLICIT_STRING_CAST_LOSS OFF} {$WARN IMPLICIT_STRING_CAST_LOSS OFF}
@ -70,7 +77,7 @@ unit synachar;
interface interface
uses uses
{$IFNDEF WIN32} {$IFNDEF MSWINDOWS}
{$IFNDEF FPC} {$IFNDEF FPC}
Libc, Libc,
{$ELSE} {$ELSE}
@ -1490,7 +1497,7 @@ begin
end; end;
{==============================================================================} {==============================================================================}
{$IFNDEF WIN32} {$IFNDEF MSWINDOWS}
function GetCurCP: TMimeChar; function GetCurCP: TMimeChar;
begin begin