Stop pretending that TH headers are both C++ and C compatible. (#16059)
authorEdward Yang <ezyang@fb.com>
Wed, 16 Jan 2019 13:33:14 +0000 (05:33 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 16 Jan 2019 13:36:45 +0000 (05:36 -0800)
commit4d07951a54127592b7f0537961b3e1fa4d8c41d0
treee3dd8f8daa4b26ec3e5099a64b9dc64276c0b35e
parentfb68d813be3ccbab3cbf74008a11071b9a646c75
Stop pretending that TH headers are both C++ and C compatible. (#16059)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16059

Just deleted all __cplusplus ifdef guards; we only ever use
these headers in C++ contexts.

Reviewed By: dzhulgakov

Differential Revision: D13686580

fbshipit-source-id: ce28c4a32f3596bfb17aeeb34904a02899991453
aten/src/TH/THAllocator.h
aten/src/TH/THGeneral.h.in
aten/src/TH/THHalf.h
aten/src/TH/generic/THStorage.h
aten/src/TH/generic/THTensor.h
aten/src/THC/THCAllocator.h
aten/src/THC/THCCachingAllocator.h
aten/src/THC/THCCachingHostAllocator.h
aten/src/THC/THCGeneral.h.in
aten/src/THC/generic/THCStorage.h
aten/src/THC/generic/THCTensorSort.h