Add Windows support to portability/Memory.h
authorChristopher Dykes <cdykes@fb.com>
Mon, 21 Mar 2016 22:05:49 +0000 (15:05 -0700)
committerFacebook Github Bot 9 <facebook-github-bot-9-bot@fb.com>
Mon, 21 Mar 2016 22:20:21 +0000 (15:20 -0700)
commit5b48f33a819df1df29924627eb106344ddd8b989
treed861bf7bb042d82edcd1bfa33bb46fe505e3c4b9
parent60088aaa3981d97f303a079b500dd03e2ae966b7
Add Windows support to portability/Memory.h

Summary: This adds Windows support to portability/Memory.h and also does some refactoring to be more correct about when to use posix_memalign, and also changes it to fall back to memalign rather than posix_memalign.

Reviewed By: mzlee

Differential Revision: D3069990

fb-gh-sync-id: 88861583c6028e9fb02a3e3804bd6d476956c555
shipit-source-id: 88861583c6028e9fb02a3e3804bd6d476956c555
folly/portability/Memory.cpp
folly/portability/Memory.h