projects
/
platform
/
upstream
/
dbus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Comment some suspicious uses of static variables
[platform/upstream/dbus.git]
/
dbus
/
dbus-test-main.c
diff --git
a/dbus/dbus-test-main.c
b/dbus/dbus-test-main.c
index
a8a30f3
..
f6ef782
100644
(file)
--- a/
dbus/dbus-test-main.c
+++ b/
dbus/dbus-test-main.c
@@
-27,7
+27,9
@@
#include "dbus-test.h"
#include <stdio.h>
#include <stdlib.h>
#include "dbus-test.h"
#include <stdio.h>
#include <stdlib.h>
+#if HAVE_LOCALE_H
#include <locale.h>
#include <locale.h>
+#endif
int
main (int argc,
int
main (int argc,
@@
-36,8
+38,9
@@
main (int argc,
const char *test_data_dir;
const char *specific_test;
const char *test_data_dir;
const char *specific_test;
+#if HAVE_SETLOCALE
setlocale(LC_ALL, "");
setlocale(LC_ALL, "");
-
+#endif
if (argc > 1)
test_data_dir = argv[1];
if (argc > 1)
test_data_dir = argv[1];