Edit

kc3-lang/brotli/c/common/platform.c

Branch :

  • Show log

    Commit

  • Author : Evgenii Kliuchnikov
    Date : 2025-08-05 02:49:08
    Hash : 8a7201c6
    Message : fix some includes PiperOrigin-RevId: 791124445

  • c/common/platform.c
  • /* Copyright 2016 Google Inc. All Rights Reserved.
    
       Distributed under MIT license.
       See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
    */
    
    #include "platform.h"
    
    /* Default brotli_alloc_func */
    void* BrotliDefaultAllocFunc(void* opaque, size_t size) {
      BROTLI_UNUSED(opaque);
      return malloc(size);
    }
    
    /* Default brotli_free_func */
    void BrotliDefaultFreeFunc(void* opaque, void* address) {
      BROTLI_UNUSED(opaque);
      free(address);
    }