Skip to content

Commit

Permalink
Add windows typedef for ssize_t (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccorm4 committed Jun 17, 2024
1 parent ebc8c6c commit 6c17c1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pb_tensor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ namespace py = pybind11;
#endif
#include "pb_tensor.h"

// WAR for undefined ssize_t on Windows: https://stackoverflow.com/a/35368387
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif

namespace triton { namespace backend { namespace python {

Expand Down

0 comments on commit 6c17c1f

Please sign in to comment.