aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/base
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-12-26 16:39:33 +0100
committerSimon Warta <[email protected]>2016-01-11 16:20:31 +0100
commitbd7ae5416385c12437dbb1e8cf377e0e817e7a90 (patch)
treeea04970928130fd720dfba9f9587f6b9fa517560 /src/lib/base
parent672d29570e55686b90126b5d6f5d337ddf0b8f04 (diff)
Get rid of "extra ';'" warnings and force semicolon after macros
Diffstat (limited to 'src/lib/base')
-rw-r--r--src/lib/base/algo_registry.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/base/algo_registry.h b/src/lib/base/algo_registry.h
index 4265b737d..eebbaa4e8 100644
--- a/src/lib/base/algo_registry.h
+++ b/src/lib/base/algo_registry.h
@@ -8,6 +8,7 @@
#ifndef BOTAN_ALGO_REGISTRY_H__
#define BOTAN_ALGO_REGISTRY_H__
+#include <botan/build.h>
#include <botan/types.h>
#include <botan/exceptn.h>
#include <functional>
@@ -262,10 +263,6 @@ make_new_T_1X(const typename Algo_Registry<T>::Spec& spec)
return new T(x.release());
}
-// Append to macros living outside of functions, so that invocations must end with a semicolon.
-// The struct is only declared to force the semicolon, it is never defined.
-#define BOTAN_FORCE_SEMICOLON struct BOTAN_DUMMY_STRUCT
-
#define BOTAN_REGISTER_TYPE(T, type, name, maker, provider, pref) \
namespace { Algo_Registry<T>::Add g_ ## type ## _reg(name, maker, provider, pref); } \
BOTAN_FORCE_SEMICOLON