mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-18 11:51:51 +03:00
aab1c94e44
Reduces amount of required helper macros.
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/*
|
|
* Copyright (C) by Klaas Freitag <freitag@kde.org>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
* for more details.
|
|
*/
|
|
|
|
#ifndef VERSION_H
|
|
#define VERSION_H
|
|
|
|
#define MIRALL_STRINGIFY(s) MIRALL_TOSTRING(s)
|
|
#define MIRALL_TOSTRING(s) #s
|
|
|
|
/* MIRALL version macros */
|
|
#define MIRALL_VERSION_INT_(a, b, c) ((a) << 16 | (b) << 8 | (c))
|
|
|
|
/* MIRALL version */
|
|
#define MIRALL_VERSION_MAJOR @VERSION_MAJOR@
|
|
#define MIRALL_VERSION_MINOR @VERSION_MINOR@
|
|
#define MIRALL_VERSION_MICRO @VERSION_PATCH@
|
|
#define MIRALL_VERSION @VERSION@
|
|
|
|
#define MIRALL_VERSION_INT MIRALL_VERSION_INT_(MIRALL_VERSION_MAJOR, \
|
|
MIRALL_VERSION_MINOR, \
|
|
MIRALL_VERSION_MICRO)
|
|
|
|
|
|
#endif // VERSION_H
|