Merge pull request #199 from veblush/upb_alloc_global

Add extern C to upb_alloc_global
pull/13171/head
Nicolas Noble 6 years ago committed by GitHub
commit 7e7cb5f831
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      upb/upb.h

@ -159,8 +159,16 @@ UPB_INLINE void upb_free(upb_alloc *alloc, void *ptr) {
/* The global allocator used by upb. Uses the standard malloc()/free(). */
#ifdef __cplusplus
extern "C" {
#endif
extern upb_alloc upb_alloc_global;
#ifdef __cplusplus
} /* extern "C" */
#endif
/* Functions that hard-code the global malloc.
*
* We still get benefit because we can put custom logic into our global

Loading…
Cancel
Save