[cogl/wip/neil/master-next] test-utils: Use g_setenv instead of setenv
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/wip/neil/master-next] test-utils: Use g_setenv instead of setenv
- Date: Mon, 19 Sep 2011 14:50:59 +0000 (UTC)
commit 543cfeb010ee02dffb7b7cb0a7ea92132b6a50be
Author: Neil Roberts <neil linux intel com>
Date: Mon Sep 19 13:40:28 2011 +0100
test-utils: Use g_setenv instead of setenv
Apparently there is no setenv function on Windows so it's more
portable to use g_setenv instead.
tests/conform/test-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/conform/test-utils.c b/tests/conform/test-utils.c
index 651e4ef..b765b46 100644
--- a/tests/conform/test-utils.c
+++ b/tests/conform/test-utils.c
@@ -24,7 +24,7 @@ test_utils_init (TestUtilsGTestFixture *fixture,
"$ make test-report");
counter++;
- setenv ("COGL_X11_SYNC", "1", 0);
+ g_setenv ("COGL_X11_SYNC", "1", 0);
state->ctx = cogl_context_new (NULL, &error);
if (!state->ctx)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]