Skip to content

Commit ef9ff51

Browse files
yoneymeta-codesync[bot]
authored andcommitted
Fix OSS build
Reviewed By: alexmalyshev Differential Revision: D83937408 fbshipit-source-id: 60b3e5381433e6cb5a2278ca0a62163b8977db84
1 parent 88d093e commit ef9ff51

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

cinderx/Jit/pyjit_result.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
#ifndef Py_LIMITED_API
66
#ifdef __cplusplus
7+
#include <fmt/format.h>
8+
79
extern "C" {
810
#endif
911

@@ -42,5 +44,8 @@ typedef enum {
4244

4345
#ifdef __cplusplus
4446
}
47+
inline auto format_as(_PyJIT_Result e) {
48+
return fmt::underlying(e);
49+
}
4550
#endif
4651
#endif /* Py_LIMITED_API */

0 commit comments

Comments
 (0)