[pango/matthiasc/for-main: 52/54] examples: Stop using HAVE_UNISTD_H




commit ab635cb660a30603b9e7e64ab5c89e8aee05b8dd
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 16 22:40:29 2022 -0400

    examples: Stop using HAVE_UNISTD_H
    
    We include that header in many other places
    without this check. The only check we use
    elsewhere is for G_OS_WIN32.
    
    This will let us clean up our meson.build
    file a little.

 examples/pangowin32tobmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/examples/pangowin32tobmp.c b/examples/pangowin32tobmp.c
index c27eac944..e14466e31 100644
--- a/examples/pangowin32tobmp.c
+++ b/examples/pangowin32tobmp.c
@@ -31,7 +31,7 @@
 
 #include <errno.h>
 #include <string.h>
-#ifdef HAVE_UNISTD_H
+#ifndef G_OS_WIN32
 #include <unistd.h>
 #endif
 #include <stdio.h>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]