[Mlir-commits] [mlir] 7440c0c - [mlir] Add header file for ssize_t

Markus Böck llvmlistbot at llvm.org
Fri Jan 6 12:30:13 PST 2023


Author: Ashay Rane
Date: 2023-01-06T21:30:09+01:00
New Revision: 7440c0ca6cb516c94b49181ec0bc7e5a953d1917

URL: https://github.com/llvm/llvm-project/commit/7440c0ca6cb516c94b49181ec0bc7e5a953d1917
DIFF: https://github.com/llvm/llvm-project/commit/7440c0ca6cb516c94b49181ec0bc7e5a953d1917.diff

LOG: [mlir] Add header file for ssize_t

ssize_t is part of POSIX and not standard C/C++, so using ssize_t
without the necessary header files causes the build to fail on Windows
with the following error: 'ssize_t': undeclared identifier.

This patch includes llvm/Support/DataTypes.h to resolve the problem.

Differential Revision: https://reviews.llvm.org/D141149

Added: 
    

Modified: 
    mlir/lib/Bindings/Python/PybindUtils.h

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Bindings/Python/PybindUtils.h b/mlir/lib/Bindings/Python/PybindUtils.h
index d039a8acdca39..245dc4621b718 100644
--- a/mlir/lib/Bindings/Python/PybindUtils.h
+++ b/mlir/lib/Bindings/Python/PybindUtils.h
@@ -12,6 +12,7 @@
 #include "mlir-c/Support.h"
 #include "llvm/ADT/Optional.h"
 #include "llvm/ADT/Twine.h"
+#include "llvm/Support/DataTypes.h"
 
 #include <pybind11/pybind11.h>
 #include <pybind11/stl.h>


        


More information about the Mlir-commits mailing list