mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-24 16:28:07 -04:00
libobs: Fix struct type usage before actual include
In its current form `struct dstr` is used in functions declarations in the header file before the actual type is included (as `dstr.h` is included after in `window-helpers.c`. `clang-cl` is unable to compile this code because the function signature defined in the header will not match the implementation in the source code due to the implicit forward-declaration of `struct dstr` before the type is included in the actual header.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#include "window-helpers.h"
|
||||
|
||||
#include <util/dstr.h>
|
||||
#include <util/windows/obfuscate.h>
|
||||
|
||||
#include <dwmapi.h>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <obs-properties.h>
|
||||
#include <util/c99defs.h>
|
||||
#include <util/dstr.h>
|
||||
#include <Windows.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user