mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
[move-to-master] common/macros: change WLR_VERSION macro to runtime evaluation
This commit is contained in:
parent
c9b4da2ce2
commit
379f06b1e8
3 changed files with 15 additions and 2 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include <unistd.h>
|
||||
#include "common/fd-util.h"
|
||||
#include "common/font.h"
|
||||
#include "common/macros.h"
|
||||
#include "common/spawn.h"
|
||||
#include "config/rcxml.h"
|
||||
#include "config/session.h"
|
||||
|
|
@ -164,6 +165,12 @@ main(int argc, char *argv[])
|
|||
char *primary_client = NULL;
|
||||
enum wlr_log_importance verbosity = WLR_ERROR;
|
||||
|
||||
server.wlr_version = _LAB_CALC_WLR_VERSION_NUM(
|
||||
wlr_version_get_major(),
|
||||
wlr_version_get_minor(),
|
||||
wlr_version_get_micro()
|
||||
);
|
||||
|
||||
int c;
|
||||
while (1) {
|
||||
int index = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue