blackmagic_common: fixed including

do not include config*h
This commit is contained in:
Martin Pulec
2024-06-06 09:16:45 +02:00
parent 0467e7e7d6
commit 2ee702e15e
2 changed files with 20 additions and 7 deletions

View File

@@ -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"

View File

@@ -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