summaryrefslogtreecommitdiff
path: root/src/commodity.h
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-11 23:11:19 +0200
committerGitHub <noreply@github.com>2023-04-11 23:11:19 +0200
commit78899a211b2f68e397e9d18b9907509558350901 (patch)
tree429044765545c2a7e2efe8c2ad5a42aed36c5ae6 /src/commodity.h
parent8aac3d98ab790040046bbe5b516ae17d89a97906 (diff)
parent72d685a258a8632b6769f033f30ebdea84d612b2 (diff)
downloadfork-ledger-78899a211b2f68e397e9d18b9907509558350901.tar.gz
fork-ledger-78899a211b2f68e397e9d18b9907509558350901.tar.bz2
fork-ledger-78899a211b2f68e397e9d18b9907509558350901.zip
Merge pull request #2230 from afh/pragma-once
Modernize codebase with #pragma once
Diffstat (limited to 'src/commodity.h')
-rw-r--r--src/commodity.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/commodity.h b/src/commodity.h
index d8ca4c39..8177fb4e 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -44,8 +44,7 @@
* This file contains one of the most basic types in Ledger:
* commodity_t, and its annotated cousin, annotated_commodity_t.
*/
-#ifndef INCLUDED_COMMODITY_H
-#define INCLUDED_COMMODITY_H
+#pragma once
#include "expr.h"
@@ -299,5 +298,3 @@ struct commodity_compare {
};
} // namespace ledger
-
-#endif // INCLUDED_COMMODITY_H