Skip to content

Since macro __GLIBC__ is not defined in complier of Mac OS, how the libc_override.h works in Mac OS?  #30

Description

@dingsp

#if defined(OS_WINDOWS)
// We don't do any overriding on windows. Just provide a dummy function.
static void ReplaceSystemAlloc() { }

#elif defined(GLIBC)
#include "tcmalloc/libc_override_glibc.h"

#else
#error Need to add support for your libc/OS here

#endif

The code has only two branches with two macros and who defines macro OS_WINDOWS? It seems like a user defined macro but I can't find it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions