Discussion:
[PATCH] Include locale.h for setlocale(3).
Raphael Kubo da Costa
2014-07-16 19:16:12 UTC
Permalink
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__
--
2.0.1
Enrico Forestieri
2014-07-16 20:30:09 UTC
Permalink
Post by Raphael Kubo da Costa
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++.
Thanks, applied.
--
Enrico
Continue reading on narkive:
Search results for '[PATCH] Include locale.h for setlocale(3).' (Questions and Answers)
5
replies
c programming help 20char?
started 2012-02-22 22:23:18 UTC
programming & design
Loading...