]> granicus.if.org Git - graphviz/commitdiff
lib/sfio: replace header guards with more modern #pragma once
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 21 Oct 2021 00:12:44 +0000 (17:12 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 27 Oct 2021 00:28:42 +0000 (17:28 -0700)
lib/sfio/sfhdr.h
lib/sfio/sfio.h
lib/sfio/sfio_t.h

index edf555fcb95cdacb5aab73c0b5d212e760128453..ab90b6bee75ceea2f2d10793e29d81e7f7e917c6 100644 (file)
@@ -8,12 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef _SFHDR_H
-#define _SFHDR_H       1
 #if !defined(_BLD_sfio)
 #define _BLD_sfio      1
 #endif
@@ -607,7 +607,6 @@ extern "C" {
     extern int fstat(int, Stat_t *);
 #endif
 
-#endif /*_SFHDR_H*/
 #ifdef __cplusplus
 }
 #endif
index 830738a66979e7a5081d6bab1ebfdcb47efa2c6c..e6f2cb3bb570cda0b209e2fcf097ba18edc615ab 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef _SFIO_H
-#define _SFIO_H        1
-
 /*     Public header file for the sfio library
 **
 **     Written by Kiem-Phong Vo
@@ -253,7 +252,6 @@ extern "C" {
 #define sfgetc(f)                              ( __sf_getc(f)                  )
 #define sffileno(f)                            ( __sf_fileno(f)                )
 #define sfslen()                               ( __sf_slen()                   )
-#endif                         /* _SFIO_H */
 #ifdef __cplusplus
 }
 #endif
index 61ceab12b3d7de33fc381937a3ba5e709135103c..b47557c04193cd36ab64b0f340e25c3b8599f21d 100644 (file)
@@ -8,13 +8,12 @@
  * Contributors: Details at https://graphviz.org
  *************************************************************************/
 
+#pragma once
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#ifndef _SFIO_T_H
-#define _SFIO_T_H      1
-
 /*     This header file is for library writers who need to know certain
 **     internal info concerning the full Sfio_t structure. Including this
 **     file means that you agree to track closely with sfio development
@@ -104,8 +103,6 @@ extern "C" {
          (f)->iosz = (size_t)0                         /* iosz         */ \
        )
 
-#endif                         /* _SFIO_T_H */
-
 #ifdef __cplusplus
 }
 #endif