Skip to content

Commit

Permalink
Merging r322869:
Browse files Browse the repository at this point in the history
------------------------------------------------------------------------
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
  • Loading branch information
DimitryAndric committed Jan 20, 2018
1 parent f1a69ba commit 3d85b5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions libomptarget/src/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <climits>
#include <cstring>
#include <cstdlib>

EXTERN int omp_get_num_devices(void) {
RTLsMtx.lock();
Expand Down
1 change: 1 addition & 0 deletions libomptarget/src/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "rtl.h"

#include <cassert>
#include <cstdlib>

////////////////////////////////////////////////////////////////////////////////
/// adds a target shared library to the target execution image
Expand Down
1 change: 1 addition & 0 deletions libomptarget/src/rtl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "rtl.h"

#include <cassert>
#include <cstdlib>
#include <cstring>
#include <dlfcn.h>
#include <mutex>
Expand Down

0 comments on commit 3d85b5b

Please sign in to comment.