Skip to content

Commit

Permalink
IDA Pro plugin: Add missing include type_traits
Browse files Browse the repository at this point in the history
The IDA SDK assumes that `type_traits` is transitively included by other
standard headers. This is not necessarily the case, especially with newer
toolchains.

PiperOrigin-RevId: 516497807
Change-Id: I1e10fa43e078c640274abfd2c6f6f063333d3233
  • Loading branch information
cblichmann authored and copybara-github committed Mar 14, 2023
1 parent 7f0d92d commit 321cfdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ida/begin_idasdk.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,9 @@
#pragma warning(disable : 4267)
#endif

// Include standard header that is implicitly assumed to be includeds
// transitively by pro.h.
#include <type_traits>

// Now include the problematic header, end_idasdk.inc will clean up again.
#include <pro.h>

0 comments on commit 321cfdd

Please sign in to comment.