From: Stefan Csomor Date: Sun, 26 Sep 2004 09:06:37 +0000 (+0000) Subject: making newline fixes depending on the encoding of \n X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2e7573f70e88339c27e72e124b253f8c9012341d making newline fixes depending on the encoding of \n git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/textctrl.cpp b/src/mac/carbon/textctrl.cpp index d95006ca29..2edb5c0a07 100644 --- a/src/mac/carbon/textctrl.cpp +++ b/src/mac/carbon/textctrl.cpp @@ -1200,7 +1200,7 @@ wxString wxMacUnicodeTextControl::GetStringValue() const wxMacCFStringHolder cf(value) ; result = cf.AsString() ; } -#if TARGET_API_MAC_OSX +#if '\n' == 10 wxMacConvertNewlines13To10( &result ) ; #else wxMacConvertNewlines10To13( &result ) ; @@ -1378,7 +1378,7 @@ wxString wxMacMLTEControl::GetStringValue() const } #endif } -#if TARGET_API_MAC_OSX +#if '\n' == 10 wxMacConvertNewlines13To10( &result ) ; #else wxMacConvertNewlines10To13( &result ) ;