Skip to content

Commit 4c89e97

Browse files
kbowers-jumpReisen
authored andcommitted
Solana uses its own custom replacement for stdint
1 parent 45525a7 commit 4c89e97

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ifndef _pyth_oracle_util_compat_stdint_h_
2+
#define _pyth_oracle_util_compat_stdint_h_
3+
4+
/* solana uses its own definitions for stdint types and that can cause
5+
problems with compilation */
6+
7+
#ifdef __bpf__
8+
#include <solana_sdk.h>
9+
#else
10+
#include <stdint.h>
11+
#endif
12+
13+
#endif /* _pyth_oracle_util_compat_stdint_h_ */

0 commit comments

Comments
 (0)