File tree 4 files changed +2
-18
lines changed
4 files changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,6 @@ char heap_start[8192];
6
6
#define PC_HEAP_START (heap_start)
7
7
#define static_assert _Static_assert
8
8
9
- typedef signed char int8_t ;
10
- typedef unsigned char uint8_t ;
11
- typedef signed short int16_t ;
12
- typedef unsigned short uint16_t ;
13
- typedef signed int int32_t ;
14
- typedef unsigned int uint32_t ;
15
- typedef signed long int int64_t ;
16
- typedef unsigned long int uint64_t ;
17
-
18
9
#include "../upd_aggregate.h"
19
10
20
11
extern bool c_upd_aggregate ( pc_price_t * ptr , uint64_t slot , int64_t timestamp ){
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
3
#include <stdbool.h>
4
+ #include "util/compat_stdint.h"
4
5
5
6
#ifdef __cplusplus
6
7
extern "C" {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ fn main() {
9
9
10
10
//generate and write bindings
11
11
let bindings = Builder :: default ( )
12
+ . clang_arg ( "-I../../../solana/sdk/bpf/c/inc/" )
12
13
. header ( "./src/bindings.h" )
13
14
. parse_callbacks ( Box :: new ( parser) )
14
15
. rustfmt_bindings ( true )
Original file line number Diff line number Diff line change 2
2
3
3
#define static_assert _Static_assert
4
4
5
- typedef signed char int8_t ;
6
- typedef unsigned char uint8_t ;
7
- typedef signed short int16_t ;
8
- typedef unsigned short uint16_t ;
9
- typedef signed int int32_t ;
10
- typedef unsigned int uint32_t ;
11
- typedef signed long int int64_t ;
12
- typedef unsigned long int uint64_t ;
13
-
14
5
#include <stddef.h>
15
6
#include "../../c/src/oracle/oracle.h"
16
7
You can’t perform that action at this time.
0 commit comments