Skip to content

Commit

Permalink
Make __locale_decpoint const char *
Browse files Browse the repository at this point in the history
  • Loading branch information
yebblies committed May 2, 2013
1 parent 2c5df8d commit 30c7dd3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/expression.c
Expand Up @@ -19,7 +19,7 @@
#endif

#if _WIN32 && __DMC__
extern "C" char * __cdecl __locale_decpoint;
extern "C" const char * __cdecl __locale_decpoint;
#endif

#include "rmem.h"
Expand Down Expand Up @@ -2625,7 +2625,7 @@ void floatToBuffer(OutBuffer *buf, Type *type, real_t value)
ld_sprint(buffer, 'g', value);
assert(strlen(buffer) < sizeof(buffer));
#if _WIN32 && __DMC__
char *save = __locale_decpoint;
const char *save = __locale_decpoint;
__locale_decpoint = ".";
real_t r = strtold(buffer, NULL);
__locale_decpoint = save;
Expand Down
4 changes: 2 additions & 2 deletions src/lexer.c
Expand Up @@ -32,7 +32,7 @@

#if _WIN32 && __DMC__
// from \dm\src\include\setlocal.h
extern "C" char * __cdecl __locale_decpoint;
extern "C" const char * __cdecl __locale_decpoint;
#endif

extern int HtmlNamedEntity(unsigned char *p, size_t length);
Expand Down Expand Up @@ -2353,7 +2353,7 @@ __body
stringbuffer.writeByte(0);

#if _WIN32 && __DMC__
char *save = __locale_decpoint;
const char *save = __locale_decpoint;
__locale_decpoint = ".";
#endif
#ifdef IN_GCC
Expand Down

0 comments on commit 30c7dd3

Please sign in to comment.