smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
638 stars 156 forks source link

Fixed compile issue with gcc 6 #65

Closed RetroZelda closed 5 years ago

RetroZelda commented 5 years ago

'if constexpr' isnt supported below gcc7(even with -std=gnu++17), so here's a quick fix to handle it. In debian stretch, gcc7 isn't stable. I am not sure if clang would need a similar thing, but I figured id make the pull request to bring it to your attention.

I am not sure if cmake would handle this(it probably doesn't) because I use a separate makefile to build

smasherprog commented 5 years ago

looks good to me thanks!