Skip to content

Commit 3d85b5b

Browse files
committed
Merging r322869:
------------------------------------------------------------------------ r322869 | dim | 2018-01-18 19:24:22 +0100 (Thu, 18 Jan 2018) | 3 lines Sprinkle a few <cstdlib> includes, for libomptarget sources using malloc, free, alloca and getenv. NFCI. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/openmp/branches/release_60@323037 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent f1a69ba commit 3d85b5b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libomptarget/src/api.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
#include <climits>
2121
#include <cstring>
22+
#include <cstdlib>
2223

2324
EXTERN int omp_get_num_devices(void) {
2425
RTLsMtx.lock();

libomptarget/src/interface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "rtl.h"
2020

2121
#include <cassert>
22+
#include <cstdlib>
2223

2324
////////////////////////////////////////////////////////////////////////////////
2425
/// adds a target shared library to the target execution image

libomptarget/src/rtl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "rtl.h"
1717

1818
#include <cassert>
19+
#include <cstdlib>
1920
#include <cstring>
2021
#include <dlfcn.h>
2122
#include <mutex>

0 commit comments

Comments
 (0)