Raphael Kubo da Costa
2014-07-16 19:16:12 UTC
Commit 82faa6619239c2e57fba9128899bafe29d728e51 added some calls to
setlocale(3) but did not include locale.h. The implicit include is added
on some platforms, but not others, such as FreeBSD with libc++.
---
src/support/os_unix.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/support/os_unix.cpp b/src/support/os_unix.cpp
index b298a7d..2635d67 100644
--- a/src/support/os_unix.cpp
+++ b/src/support/os_unix.cpp
@@ -23,6 +23,7 @@
#include "support/lassert.h"
#include <limits.h>
+#include <locale.h>
#include <stdlib.h>
#ifdef __APPLE__
setlocale(3) but did not include locale.h. The implicit include is added
on some platforms, but not others, such as FreeBSD with libc++.
---
src/support/os_unix.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/support/os_unix.cpp b/src/support/os_unix.cpp
index b298a7d..2635d67 100644
--- a/src/support/os_unix.cpp
+++ b/src/support/os_unix.cpp
@@ -23,6 +23,7 @@
#include "support/lassert.h"
#include <limits.h>
+#include <locale.h>
#include <stdlib.h>
#ifdef __APPLE__
--
2.0.1
2.0.1