[tali] Replace ifndefs with #pragma once



commit 61eecee8aeb9f3c87e5fd8c5c5d98b24f87b000e
Author: Mart Raudsepp <leio gentoo org>
Date:   Sat Mar 28 20:31:11 2020 +0200

    Replace ifndefs with #pragma once

 src/games-frame.h | 5 +----
 src/gyahtzee.h    | 4 +---
 src/yahtzee.h     | 5 +----
 3 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/src/games-frame.h b/src/games-frame.h
index ef2bdf3..e23f528 100644
--- a/src/games-frame.h
+++ b/src/games-frame.h
@@ -18,8 +18,7 @@
  * Boston, MA 02111-1307, USA.
  */
 
-#ifndef GAMES_FRAME_H
-#define GAMES_FRAME_H
+#pragma once
 
 #include <gtk/gtk.h>
 
@@ -48,5 +47,3 @@ void       games_frame_set_label (GamesFrame *frame,
                                   const char *label);
 
 G_END_DECLS
-
-#endif /* !GAMES_FRAME_H */
diff --git a/src/gyahtzee.h b/src/gyahtzee.h
index a7a4edc..085a62d 100644
--- a/src/gyahtzee.h
+++ b/src/gyahtzee.h
@@ -1,5 +1,4 @@
-#ifndef _Gyahtzee_H_
-#define _Gyahtzee_H_
+#pragma once
 /*
  * Gyatzee: Gnomified Yahtzee game.
  * (C) 1998 the Free Software Foundation
@@ -39,4 +38,3 @@ extern void set_new_game_type(GameType type);
 extern int GyahtzeeAbort;
 extern GtkWidget *ScoreList;
 extern void update_undo_sensitivity(void);
-#endif /* _Gyahtzee_H_ */
diff --git a/src/yahtzee.h b/src/yahtzee.h
index 55fe763..a6b9d89 100644
--- a/src/yahtzee.h
+++ b/src/yahtzee.h
@@ -1,5 +1,4 @@
-#ifndef _yahtzee_H_
-#define _yahtzee_H_
+#pragma once
 /*
  * Gyatzee: Gnomified Yahtzee game.
  * (C) 1998 the Free Software Foundation
@@ -144,5 +143,3 @@ enum { SCORE_OK = 0, SLOT_USED, PLAYER_DONE, YAHTZEE_NEWGAME };
 
 typedef  enum { GAME_YAHTZEE = 0, GAME_KISMET } GameType;
 extern GameType game_type;
-
-#endif /* _yahtzee_H_ */


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