Skip to content

Commit

Permalink
Hotfix for TiGL 2.1.0 on Apple
Browse files Browse the repository at this point in the history
  • Loading branch information
rainman110 committed Jan 17, 2014
1 parent 2cc5764 commit 3b1e03f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion TIGLViewer/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ int main(int argc, char *argv[])
}
#endif

#ifdef __linux__
#if defined __linux__
// we need to set us locale as we use "." for decimal point
putenv("LC_NUMERIC=C");
#elif defined __APPLE__
setlocale(LC_NUMERIC, "C");
#endif

int retval = parseArguments(app.arguments());
Expand Down

0 comments on commit 3b1e03f

Please sign in to comment.