zephyr/soc/xtensa/intel_s1000/xcc/cpp_fixes.c
Daniel Leung 60db257e69 soc: intel_s1000: add dummy atexit() for Clang++
Add a dummy atexit() function when compiling C++ source files
using Clang++.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2020-01-07 17:09:38 +01:00

17 lines
205 B
C

/*
* Copyright (c) 2019, Intel Corporation.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdint.h>
#ifdef __clang__
int atexit(void (*function)(void))
{
return 0;
}
#endif /* __clang__ */