commit 10a95f711451bc653ba5d1f14c0f514e4d854c44
Author:     Laslo Hunhold <[email protected]>
AuthorDate: Tue Jan 4 18:47:06 2022 +0100
Commit:     Laslo Hunhold <[email protected]>
CommitDate: Tue Jan 4 18:47:06 2022 +0100

    Use "#ifdef" instead of "#if defined"
    
    Signed-off-by: Laslo Hunhold <[email protected]>

diff --git a/benchmark/character.c b/benchmark/character.c
index 53bb30a..130ccc7 100644
--- a/benchmark/character.c
+++ b/benchmark/character.c
@@ -14,7 +14,7 @@
 
 #define NUM_ITERATIONS 100000
 
-#if defined __has_attribute
+#ifdef __has_attribute
        #if __has_attribute(optnone)
                void libgrapheme(const void *) __attribute__((optnone));
                void libutf8proc(const void *) __attribute__((optnone));
diff --git a/benchmark/utf8-decode.c b/benchmark/utf8-decode.c
index 16d117e..e06a77a 100644
--- a/benchmark/utf8-decode.c
+++ b/benchmark/utf8-decode.c
@@ -14,7 +14,7 @@
 
 #define NUM_ITERATIONS 100000
 
-#if defined __has_attribute
+#ifdef __has_attribute
        #if __has_attribute(optnone)
                void libgrapheme(const void *) __attribute__((optnone));
                void libutf8proc(const void *) __attribute__((optnone));

Reply via email to