Add a dummy atexit() function when compiling C++ source files using Clang++. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
17 lines
205 B
C
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__ */
|