aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkOSEnvironment.cpp
blob: ec2cc3647d83b00faeda87ae119fbca42ad62c4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * 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 "SkTypes.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
}