Skip to content

Commit

Permalink
d3d11: define guids in one translation unit
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Feb 19, 2023
1 parent 2c946e6 commit ab214d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/d3d11/gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* License along with libplacebo. If not, see <http://www.gnu.org/licenses/>.
*/

#include <initguid.h>
#include <windows.h>
#include <versionhelpers.h>

Expand Down
2 changes: 1 addition & 1 deletion src/d3d11/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ endforeach

components.set('d3d11', d3d11.allowed())
if d3d11.allowed()
add_project_arguments(['-DCOBJMACROS', '-DINITGUID'], language: 'c')
add_project_arguments(['-DCOBJMACROS'], language: 'c')
build_deps += declare_dependency(dependencies: d3d11_deps)
tests += 'd3d11.c'
sources += [
Expand Down

0 comments on commit ab214d6

Please sign in to comment.