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:
PatTheMav
2023-05-20 22:43:31 +02:00
committed by Lain
parent 47d6d7e943
commit e400d3f1bc
2 changed files with 1 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
#include "window-helpers.h"
#include <util/dstr.h>
#include <util/windows/obfuscate.h>
#include <dwmapi.h>

View File

@@ -2,6 +2,7 @@
#include <obs-properties.h>
#include <util/c99defs.h>
#include <util/dstr.h>
#include <Windows.h>
#ifdef __cplusplus