Skip to content

Commit

Permalink
fix compilation errors against latest gcc in Fedora
Browse files Browse the repository at this point in the history
- stddef needs to be added for NULL
- fix redeclaration of dir constants that should obviously be for the secondary not main directory definitions
  • Loading branch information
JoshStrobl committed Sep 27, 2023
1 parent cfee114 commit c221664
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/config/budgie-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#ifndef CONFIG_H_INCLUDED
#include "config.h"
#include <stdbool.h>
#include <stddef.h>

/**
* All this is to keep Vala happy & configured..
Expand All @@ -30,9 +31,9 @@ const char* BUDGIE_RAVEN_PLUGIN_DATADIR_SECONDARY = RAVEN_PLUGIN_DATADIR_SECONDA
#else
const bool BUDGIE_HAS_SECONDARY_PLUGIN_DIRS = false;
const char* BUDGIE_MODULE_DIRECTORY_SECONDARY = NULL;
const char* BUDGIE_MODULE_DATA_DIRECTORY = NULL;
const char* BUDGIE_RAVEN_PLUGIN_LIBDIR = NULL;
const char* BUDGIE_RAVEN_PLUGIN_DATADIR = NULL;
const char* BUDGIE_MODULE_DATA_DIRECTORY_SECONDARY = NULL;
const char* BUDGIE_RAVEN_PLUGIN_LIBDIR_SECONDARY = NULL;
const char* BUDGIE_RAVEN_PLUGIN_DATADIR_SECONDARY = NULL;
#endif

const char* BUDGIE_DATADIR = DATADIR;
Expand Down
1 change: 1 addition & 0 deletions src/config/budgie-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define _BUDGIE_CONFIG_H_

#include <stdbool.h>
#include <stddef.h>

/* i.e. /usr/lib/budgie-desktop */
extern const char* BUDGIE_MODULE_DIRECTORY;
Expand Down

0 comments on commit c221664

Please sign in to comment.