From 3765500c7bca6847413421b3b543e14a0fcf3629 Mon Sep 17 00:00:00 2001 From: Flinner Yuu Date: Wed, 4 Dec 2024 11:55:46 +0300 Subject: [PATCH] fix: u_int32 not working on windows --- Clinic.cpp | 1 - Patient.cpp | 1 - Patient.hpp | 1 - Visit.cpp | 1 - Visit.hpp | 5 ++++- main.cpp | 1 - 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Clinic.cpp b/Clinic.cpp index a270e6d..9cec3b1 100644 --- a/Clinic.cpp +++ b/Clinic.cpp @@ -5,7 +5,6 @@ #include #include #include -#include #ifndef CLINIC_ #define CLINIC_ diff --git a/Patient.cpp b/Patient.cpp index 5ae863a..29b5964 100644 --- a/Patient.cpp +++ b/Patient.cpp @@ -25,7 +25,6 @@ #include #include #include -#include #include //////////////////////////////////// diff --git a/Patient.hpp b/Patient.hpp index 3708b95..7c12e38 100644 --- a/Patient.hpp +++ b/Patient.hpp @@ -6,7 +6,6 @@ #include #include #include -#include #include //////////////////////////////////// diff --git a/Visit.cpp b/Visit.cpp index 0f7bdca..22d6f9a 100644 --- a/Visit.cpp +++ b/Visit.cpp @@ -1,7 +1,6 @@ #include #include #include -#include #include "Visit.hpp" diff --git a/Visit.hpp b/Visit.hpp index 531615a..4352cbe 100644 --- a/Visit.hpp +++ b/Visit.hpp @@ -5,7 +5,10 @@ #include #include #include -#include + +// Fix u_int_32_t not on windows +#include +typedef std::uint32_t u_int32_t; class Visit { // clang-format off diff --git a/main.cpp b/main.cpp index 46451bf..3607ed5 100644 --- a/main.cpp +++ b/main.cpp @@ -7,7 +7,6 @@ #include #include #include -#include int main() { // this program implements the sieve of Erathosthenes using linked lists