Skip to content

Commit

Permalink
Added conditions for imgui include paths on linux
Browse files Browse the repository at this point in the history
The linux distro package puts the paths in an imgui/ folder.
  • Loading branch information
Vultraz committed Dec 28, 2022
1 parent 88563f4 commit 44f2fcb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/imgui_additions/imgui_custom.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@

#pragma once

#if !defined(_MSC_VER) && !defined(__APPLE__ )
#include <imgui/imgui.h>
#else
#include <imgui.h>
#endif

namespace ImGui
{
Expand Down
4 changes: 4 additions & 0 deletions src/kre/imgui_impl_sdl_gl3.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@

#pragma once

#if !defined(_MSC_VER) && !defined(__APPLE__ )
#include <imgui/imgui.h>
#else
#include <imgui.h>
#endif

struct SDL_Window;
typedef union SDL_Event SDL_Event;
Expand Down
5 changes: 5 additions & 0 deletions src/theme_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@

#include "theme_imgui.hpp"

#if !defined(_MSC_VER) && !defined(__APPLE__ )
#include <imgui/imgui.h>
#else
#include <imgui.h>
#endif

#include <string>

#include "asserts.hpp"
Expand Down

0 comments on commit 44f2fcb

Please sign in to comment.