gbranden pushed a commit to branch master
in repository groff.

commit 20729574d3ebe112dd8c499eafeef7da4f651070
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sat Dec 21 16:12:44 2024 -0600

    src/include/stringclass.h: Add include guard.
    
    * src/include/stringclass.h: Introduce `GROFF_STRINGCLASS_H` include
      guard.
---
 ChangeLog                 | 5 +++++
 src/include/stringclass.h | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 45b01eba6..789cc4809 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-12-21  G. Branden Robinson <[email protected]>
+
+       * src/include/stringclass.h: Introduce `GROFF_STRINGCLASS_H`
+       include guard.
+
 2024-12-21  G. Branden Robinson <[email protected]>
 
        * src/utils/tfmtodit/tfmtodit.cpp (main): Throw assertion on
diff --git a/src/include/stringclass.h b/src/include/stringclass.h
index eefface17..445b44152 100644
--- a/src/include/stringclass.h
+++ b/src/include/stringclass.h
@@ -16,6 +16,9 @@ for more details.
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
+#ifndef GROFF_STRINGCLASS_H
+#define GROFF_STRINGCLASS_H
+
 #include <assert.h>
 #include <string.h> // memcmp(), strlen()
 #include <stdio.h> // FILE
@@ -194,6 +197,8 @@ void put_string(const string &, FILE *);
 
 string as_string(int);
 
+#endif // GROFF_STRINGCLASS_H
+
 // Local Variables:
 // fill-column: 72
 // mode: C++

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to