diff --git a/pandas/_libs/include/pandas/datetime/date_conversions.h b/pandas/_libs/include/pandas/datetime/date_conversions.h index e039991847a62..043805a8b25f4 100644 --- a/pandas/_libs/include/pandas/datetime/date_conversions.h +++ b/pandas/_libs/include/pandas/datetime/date_conversions.h @@ -9,6 +9,7 @@ The full license is in the LICENSE file, distributed with this software. #define PY_SSIZE_T_CLEAN #include + #include // Scales value inplace from nanosecond resolution to unit resolution diff --git a/pandas/_libs/include/pandas/parser/io.h b/pandas/_libs/include/pandas/parser/io.h index c707c23b567d2..41f1bb9312724 100644 --- a/pandas/_libs/include/pandas/parser/io.h +++ b/pandas/_libs/include/pandas/parser/io.h @@ -10,9 +10,10 @@ The full license is in the LICENSE file, distributed with this software. #pragma once #define PY_SSIZE_T_CLEAN -#include "tokenizer.h" #include +#include "tokenizer.h" + #define FS(source) ((file_source *)source) typedef struct _rd_source { diff --git a/pandas/_libs/include/pandas/parser/pd_parser.h b/pandas/_libs/include/pandas/parser/pd_parser.h index 58a09ae1bba39..543839b5d75bf 100644 --- a/pandas/_libs/include/pandas/parser/pd_parser.h +++ b/pandas/_libs/include/pandas/parser/pd_parser.h @@ -13,9 +13,10 @@ extern "C" { #endif #define PY_SSIZE_T_CLEAN -#include "pandas/parser/tokenizer.h" #include +#include "pandas/parser/tokenizer.h" + typedef struct { int (*to_double)(char *, double *, char, char, int *); int (*floatify)(PyObject *, double *, int *); diff --git a/pandas/_libs/include/pandas/vendored/klib/khash_python.h b/pandas/_libs/include/pandas/vendored/klib/khash_python.h index 2fa61642968cf..9706a8211b61f 100644 --- a/pandas/_libs/include/pandas/vendored/klib/khash_python.h +++ b/pandas/_libs/include/pandas/vendored/klib/khash_python.h @@ -3,6 +3,7 @@ #pragma once #include + #include #include diff --git a/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c b/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c index 4cfead8ac77a5..ef6f1104a1fb9 100644 --- a/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c +++ b/pandas/_libs/src/vendored/ujson/python/JSONtoObj.c @@ -38,11 +38,10 @@ Numeric decoder derived from TCL library // Licence at LICENSES/ULTRAJSON_LICENSE -// clang-format off #define PY_SSIZE_T_CLEAN #include + #include "pandas/vendored/ujson/lib/ultrajson.h" -// clang-format on static int Object_objectAddKey(void *Py_UNUSED(prv), JSOBJ obj, JSOBJ name, JSOBJ value) { diff --git a/pandas/_libs/src/vendored/ujson/python/ujson.c b/pandas/_libs/src/vendored/ujson/python/ujson.c index f369d122a3dbe..2ee084b9304f4 100644 --- a/pandas/_libs/src/vendored/ujson/python/ujson.c +++ b/pandas/_libs/src/vendored/ujson/python/ujson.c @@ -40,6 +40,7 @@ Numeric decoder derived from TCL library #define PY_SSIZE_T_CLEAN #include + #define PY_ARRAY_UNIQUE_SYMBOL UJSON_NUMPY #include "numpy/arrayobject.h"