Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
22e5f5e5
Commit
22e5f5e5
authored
May 05, 2022
by
Philippe Normand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add NICE_CHECK_VERSION macro
parent
2eb9633c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
meson.build
meson.build
+4
-0
nice/nice.h
nice/nice.h
+8
-0
No files found.
meson.build
View file @
22e5f5e5
...
...
@@ -78,6 +78,10 @@ add_project_arguments('-D_GNU_SOURCE',
'-DHAVE_CONFIG_H',
'-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_' + glib_req_minmax_str,
'-DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_' + glib_req_minmax_str,
'-DNICE_VERSION_MAJOR=' + version_major,
'-DNICE_VERSION_MINOR=' + version_minor,
'-DNICE_VERSION_MICRO=' + version_micro,
'-DNICE_VERSION_NANO=' + version_nano,
language: 'c')
cdata = configuration_data()
...
...
nice/nice.h
View file @
22e5f5e5
...
...
@@ -39,6 +39,14 @@
#ifndef _NICE_H
#define _NICE_H
#define NICE_CHECK_VERSION(major, minor, micro) \
(NICE_VERSION_MAJOR > (major) || \
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR > (minor)) || \
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR == (minor) && \
NICE_VERSION_MICRO >= (micro)) || \
(NICE_VERSION_MAJOR == (major) && NICE_VERSION_MINOR == (minor) && \
NICE_VERSION_MICRO + 1 == (micro) && NICE_VERSION_NANO > 0))
#include "agent.h"
#include "interfaces.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment