Loading...
Searching...
No Matches
as_std.h
Go to the documentation of this file.
1/*
2 * Copyright 2008-2018 Aerospike, Inc.
3 *
4 * Portions may be licensed to Aerospike, Inc. under one or more contributor
5 * license agreements.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
8 * use this file except in compliance with the License. You may obtain a copy of
9 * the License at http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17#pragma once
18
19#include <inttypes.h>
20#include <stdbool.h>
21#include <stdint.h>
22#include <stdlib.h>
23
24#if ! defined(_MSC_VER)
25#define AS_EXTERN
26
27#else
28#include <malloc.h>
29
30#define strcasecmp _stricmp
31#define strncasecmp _strnicmp
32#define strtok_r strtok_s
33#define __thread __declspec(thread)
34
35#if defined(AS_SHARED_EXPORT)
36#define AS_EXTERN __declspec(dllexport)
37#elif defined(AS_SHARED_IMPORT)
38#define AS_EXTERN __declspec(dllimport)
39#else
40#define AS_EXTERN
41#endif
42
43#endif