Skip to content

Commit a346f41

Browse files
qarkaicaclark
authored andcommitted
Use LayoutLocation forward declaration
1 parent bcc764e commit a346f41

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/layout-config.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
#include "compat.h"
3333
#include "intl.h"
34+
#include "layout.h"
3435
#include "misc.h"
3536
#include "ui-misc.h"
3637

src/layout-config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <glib.h>
2626
#include <gtk/gtk.h>
2727

28-
#include "layout.h"
28+
enum LayoutLocation : int;
2929

3030

3131
GtkWidget *layout_config_new(gint style, const gchar *order);

src/layout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct ViewFile;
4444

4545
#define MAX_SPLIT_IMAGES 4
4646

47-
enum LayoutLocation {
47+
enum LayoutLocation : int {
4848
LAYOUT_HIDE = 0,
4949
LAYOUT_LEFT = 1 << 0,
5050
LAYOUT_RIGHT = 1 << 1,

0 commit comments

Comments
 (0)