Fix PyTorch3D build failure on windows

Summary: Replace #defines by typedefs by following the instructions at https://github.com/facebookresearch/pytorch3d/issues/1970?fbclid=IwY2xjawKZqMJleHRuA2FlbQIxMQBicmlkETFyWFczV2hMVmdOczJWellIAR7jxI6zGQiC5ag-FUXjSK12ljn7rmbMKc3HsLX-BC1TMpOUTJy-bsZxmfKzmw_aem_MIG_nc3eg7LL1o2fSAbl0A#issuecomment-2894339456

Reviewed By: bottler

Differential Revision: D75083182

fbshipit-source-id: 7131fe555bb0da615b341e77ddd8761ebce9d7eb
This commit is contained in:
Ting Xu 2025-05-21 07:46:49 -07:00 committed by Facebook GitHub Bot
parent 0a59450f0e
commit 366eff21d9

View File

@ -15,8 +15,8 @@
#endif
#if defined(_WIN64) || defined(_WIN32)
#define uint unsigned int
#define ushort unsigned short
using uint = unsigned int;
using ushort = unsigned short;
#endif
#include "./logging.h" // <- include before torch/extension.h