From e6a866286cbc9442ae466e335023b37943956e27 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 4 Nov 2020 02:09:08 -0800 Subject: thunk: switch from pragma to classical header guard Pragma isn't standardized and it didn't seem to be working properly in a project where simply replacing it with this commit fixed compilation --- thunk.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/thunk.h b/thunk.h index 1ae6463..c388140 100644 --- a/thunk.h +++ b/thunk.h @@ -1,3 +1,6 @@ +#ifndef _THUNK_H +#define _THUNK_H + /* * Machinery for generating simple C thunks using the C preprocessor. * Copyright (C) 2016 Vito Caputo @@ -16,7 +19,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#pragma once #include #include @@ -356,3 +358,5 @@ struct thunk_t { static inline int thunk_dispatch(thunk_t *thunk) { return thunk->dispatch(thunk); } + +#endif -- cgit v1.2.3