diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2020-11-04 02:09:08 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2020-11-04 02:09:08 -0800 |
commit | e6a866286cbc9442ae466e335023b37943956e27 (patch) | |
tree | c2d01ad9b0b395f697f24f0b47abacb8e3613866 | |
parent | 73a5f983dbfbe47e2338871063f26f00adfce85c (diff) |
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
-rw-r--r-- | thunk.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 <vcaputo@pengaru.com> @@ -16,7 +19,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#pragma once #include <assert.h> #include <stdlib.h> @@ -356,3 +358,5 @@ struct thunk_t { static inline int thunk_dispatch(thunk_t *thunk) { return thunk->dispatch(thunk); } + +#endif |