mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use ATOM_COMMON_ATOM_VERSION_H_ as ifdef guar
This commit is contained in:
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user