Browse Source

osx

master
Felix von Leitner 4 years ago
parent
commit
5027027b8c
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      scan/scan_varint.c

+ 6
- 0
scan/scan_varint.c View File

@ -14,4 +14,10 @@ size_t scan_varint(const char* in,size_t len, unsigned long long* n) {
return 0;
}
#ifdef __ELF__
size_t scan_pb_type0_int(const char* dest,size_t len,unsigned long long* l) __attribute__((alias("scan_varint")));
#else
size_t scan_pb_type0_int(const char* dest,size_t len,unsigned long long* l) {
return scan_varint(dest,len,l);
}
#endif

Loading…
Cancel
Save