Skip to content

Commit

Permalink
Fix header guards using reserved identifiers
Browse files Browse the repository at this point in the history
Identifiers beginning with an underscore followed immediately by an uppercase letter are reserved.
  • Loading branch information
danra authored and random-zebra committed Jan 19, 2021
1 parent 9e614f7 commit a6eaa7a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/cuckoocache.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOIN_CUCKOOCACHE_H_
#define _BITCOIN_CUCKOOCACHE_H_
#ifndef BITCOIN_CUCKOOCACHE_H
#define BITCOIN_CUCKOOCACHE_H

#include <array>
#include <algorithm>
Expand Down Expand Up @@ -454,4 +454,4 @@ class cache
};
} // namespace CuckooCache

#endif
#endif // BITCOIN_CUCKOOCACHE_H
6 changes: 3 additions & 3 deletions src/prevector.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOIN_PREVECTOR_H_
#define _BITCOIN_PREVECTOR_H_
#ifndef BITCOIN_PREVECTOR_H
#define BITCOIN_PREVECTOR_H

#include <assert.h>
#include <stdlib.h>
Expand Down Expand Up @@ -528,4 +528,4 @@ class prevector {
};
#pragma pack(pop)

#endif
#endif // BITCOIN_PREVECTOR_H

0 comments on commit a6eaa7a

Please sign in to comment.