comparison mac/dw.m @ 2823:b1ff739d0dbc

Make dwcompat.h allow mixing of C and C++ code. GitHub issue #3. Also fix a minor whitespace issue.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 14 Aug 2022 15:36:36 +0000
parents 3731f21dd678
children 30b554c34198
comparison
equal deleted inserted replaced
2822:0adf73d5d8c2 2823:b1ff739d0dbc
12619 12619
12620 /* Just in case we can't obtain a path */ 12620 /* Just in case we can't obtain a path */
12621 if(!_dw_bundle_path[0]) 12621 if(!_dw_bundle_path[0])
12622 getcwd(_dw_bundle_path, PATH_MAX); 12622 getcwd(_dw_bundle_path, PATH_MAX);
12623 12623
12624 /* Set the locale... if it is UTF-8 pass it 12624 /* Set the locale... if it is UTF-8 pass it
12625 * directly, otherwise specify UTF-8 explicitly. 12625 * directly, otherwise specify UTF-8 explicitly.
12626 */ 12626 */
12627 setlocale(LC_ALL, lang && strstr(lang, ".UTF-8") ? lang : "UTF-8"); 12627 setlocale(LC_ALL, lang && strstr(lang, ".UTF-8") ? lang : "UTF-8");
12628 12628
12629 /* If we aren't using garbage collection we need autorelease pools */ 12629 /* If we aren't using garbage collection we need autorelease pools */