Use ATOM_COMMON_ATOM_VERSION_H_ as ifdef guar
This commit is contained in:
parent
5eeadb0ad4
commit
fdc666708f
1 changed files with 5 additions and 4 deletions
|
@ -2,8 +2,8 @@
|
||||||
// Use of this source code is governed by the MIT license that can be
|
// Use of this source code is governed by the MIT license that can be
|
||||||
// found in the LICENSE file.
|
// found in the LICENSE file.
|
||||||
|
|
||||||
#ifndef ATOM_VERSION_H
|
#ifndef ATOM_COMMON_ATOM_VERSION_H_
|
||||||
#define ATOM_VERSION_H
|
#define ATOM_COMMON_ATOM_VERSION_H_
|
||||||
|
|
||||||
#define ATOM_MAJOR_VERSION 1
|
#define ATOM_MAJOR_VERSION 1
|
||||||
#define ATOM_MINOR_VERSION 3
|
#define ATOM_MINOR_VERSION 3
|
||||||
|
@ -38,6 +38,7 @@
|
||||||
#define ATOM_VERSION_AT_LEAST(major, minor, patch) \
|
#define ATOM_VERSION_AT_LEAST(major, minor, patch) \
|
||||||
(( (major) < ATOM_MAJOR_VERSION) \
|
(( (major) < ATOM_MAJOR_VERSION) \
|
||||||
|| ((major) == ATOM_MAJOR_VERSION && (minor) < ATOM_MINOR_VERSION) \
|
|| ((major) == ATOM_MAJOR_VERSION && (minor) < ATOM_MINOR_VERSION) \
|
||||||
|| ((major) == ATOM_MAJOR_VERSION && (minor) == ATOM_MINOR_VERSION && (patch) <= ATOM_PATCH_VERSION))
|
|| ((major) == ATOM_MAJOR_VERSION && (minor) == ATOM_MINOR_VERSION \
|
||||||
|
&& (patch) <= ATOM_PATCH_VERSION))
|
||||||
|
|
||||||
#endif /* ATOM_VERSION_H */
|
#endif // ATOM_COMMON_ATOM_VERSION_H_
|
||||||
|
|
Loading…
Reference in a new issue