mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 05:40:27 +00:00
blackmagic_common: fixed including
do not include config*h
This commit is contained in:
@@ -35,21 +35,22 @@
|
||||
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#include "config_unix.h"
|
||||
#include "config_win32.h"
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype> // for isxdigit
|
||||
#include <chrono> // for seconds
|
||||
#include <condition_variable>
|
||||
#include <cstdio> // for fprintf, stderr
|
||||
#include <cstring> // for strlen, NULL, strdup, memcpy, size_t
|
||||
#include <iomanip>
|
||||
#include <map>
|
||||
#include <mutex> // for mutex, lock_guard, unique_lock
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
#include "compat/htonl.h"
|
||||
#include "compat/misc.h" // for strncasecmp
|
||||
#include "DeckLinkAPIVersion.h"
|
||||
#include "blackmagic_common.hpp"
|
||||
#include "debug.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* implementation file should be defined.
|
||||
*/
|
||||
/*
|
||||
* Copyright (c) 2021 CESNET, z. s. p. o.
|
||||
* Copyright (c) 2021-2024 CESNET
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -50,5 +50,17 @@
|
||||
#define strdupa(s) (char *) memcpy(alloca(strlen(s) + 1), s, strlen(s) + 1)
|
||||
#endif // defined strdupa
|
||||
|
||||
// str[n]casecmp
|
||||
#ifdef _WIN32 // also defined in config_win32.h
|
||||
#ifndef strcasecmp
|
||||
#define strcasecmp _stricmp
|
||||
#endif // defined strcasecmp
|
||||
#ifndef strncasecmp
|
||||
#define strncasecmp _strnicmp
|
||||
#endif // defined strncasecmp
|
||||
#else
|
||||
#include <strings.h>
|
||||
#endif
|
||||
|
||||
#endif // defined COMPAT_MISC_H_20C709DB_F4A8_4744_A0A9_96036B277011
|
||||
|
||||
|
||||
Reference in New Issue
Block a user