Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
Fixes for Android build.
Browse files Browse the repository at this point in the history
  • Loading branch information
lygstate committed Jan 24, 2017
1 parent 3adb817 commit ddc5468
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mshadow/packet-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
#include "./base.h"
#include "./tensor.h"
#include "./expression.h"

#if defined(__ANDROID_API__) && __ANDROID_API__ <16
static int posix_memalign(void **memptr, size_t alignment, size_t size) {
*memptr = memalign(alignment, size);
return 0;
}
#endif

namespace mshadow {
/*! \brief namespace of packet math*/
Expand Down

0 comments on commit ddc5468

Please sign in to comment.