| Index: src/ports/SkOSEnvironment.cpp
|
| diff --git a/src/ports/SkOSEnvironment.cpp b/src/ports/SkOSEnvironment.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cc7aa18cff7f32ee5a9b0f99bdc186c4a8f0825e
|
| --- /dev/null
|
| +++ b/src/ports/SkOSEnvironment.cpp
|
| @@ -0,0 +1,19 @@
|
| +
|
| +/*
|
| + * Copyright 2015 Google Inc.
|
| + *
|
| + * Use of this source code is governed by a BSD-style license that can be
|
| + * found in the LICENSE file.
|
| + */
|
| +
|
| +#include "SkOSEnvironment.h"
|
| +#include <stdlib.h>
|
| +
|
| +void sk_setenv(const char* key, const char* value) {
|
| +#ifdef SK_BUILD_FOR_WIN32
|
| + _putenv_s(key, value);
|
| +#else
|
| + setenv(key, value, 1);
|
| +#endif
|
| +}
|
| +
|
|
|