Use ATOM_COMMON_ATOM_VERSION_H_ as ifdef guar

This commit is contained in:
Kevin Sawicki 2016-08-05 10:52:56 -07:00
parent 5eeadb0ad4
commit fdc666708f

View file

@ -2,8 +2,8 @@
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_VERSION_H
#define ATOM_VERSION_H
#ifndef ATOM_COMMON_ATOM_VERSION_H_
#define ATOM_COMMON_ATOM_VERSION_H_
#define ATOM_MAJOR_VERSION 1
#define ATOM_MINOR_VERSION 3
@ -38,6 +38,7 @@
#define ATOM_VERSION_AT_LEAST(major, minor, patch) \
(( (major) < ATOM_MAJOR_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_