Open Broadcaster Software
Free, open source software for live streaming and recording
c99defs.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2013 Hugh Bailey <obs.jim@gmail.com>
3
*
4
* Permission to use, copy, modify, and distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
17
#pragma once
18
19
/*
20
* Contains hacks for getting some C99 stuff working in VC, things like
21
* bool, stdint
22
*/
23
24
#define UNUSED_PARAMETER(param) (void)param
25
26
#ifdef _MSC_VER
27
#define OBS_DEPRECATED __declspec(deprecated)
28
#define FORCE_INLINE __forceinline
29
#else
30
#define OBS_DEPRECATED __attribute__((deprecated))
31
#define FORCE_INLINE inline __attribute__((always_inline))
32
#endif
33
34
#ifdef _MSC_VER
35
#define EXPORT __declspec(dllexport)
36
#else
37
#define EXPORT
38
#endif
39
40
#include <stddef.h>
41
#include <stdint.h>
42
#include <stdbool.h>
43
#include <sys/types.h>
libobs
util
c99defs.h
Generated on Thu Apr 16 2020 00:00:00 for Open Broadcaster Software by
1.8.17