Skip to content

Commit

Permalink
Allow constexpr on newer revisions of __cpp_constexpr. (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarioSamo authored Jun 22, 2024
1 parent 4b6d66f commit 4629460
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddspp.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dds-header-dxt10
// https://learn.microsoft.com/en-us/windows/win32/direct3ddds/dds-pixelformat

#if (__cpp_constexpr == 201304) || (_MSC_VER > 1900)
#if (__cpp_constexpr >= 201304) || (_MSC_VER > 1900)
#define ddspp_constexpr constexpr
#else
#define ddspp_constexpr const
Expand Down Expand Up @@ -1038,4 +1038,4 @@ namespace ddspp

return (unsigned int)offset;
}
}
}

0 comments on commit 4629460

Please sign in to comment.