Skip to content

Commit 366eff2

Browse files
Ting Xufacebook-github-bot
Ting Xu
authored andcommitted
Fix PyTorch3D build failure on windows
Summary: Replace #defines by typedefs by following the instructions at #1970 Reviewed By: bottler Differential Revision: D75083182 fbshipit-source-id: 7131fe555bb0da615b341e77ddd8761ebce9d7eb
1 parent 0a59450 commit 366eff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch3d/csrc/pulsar/global.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#endif
1616

1717
#if defined(_WIN64) || defined(_WIN32)
18-
#define uint unsigned int
19-
#define ushort unsigned short
18+
using uint = unsigned int;
19+
using ushort = unsigned short;
2020
#endif
2121

2222
#include "./logging.h" // <- include before torch/extension.h

0 commit comments

Comments
 (0)