Generate some extern "C" lines

This commit is contained in:
Nigel Tao committed 2018-06-16 08:22:26 +10:00
1 parent 56491b384e
commit c82e41c249
18 files changed
+256 -56

No files matched your search

@@ -17,6 +17,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#ifdef __cplusplus
extern "C" {
#endif
#define WUFFS_BASE__IGNORE_POTENTIALLY_UNUSED_VARIABLE(x) (void)(x)
// WUFFS_BASE__MAGIC is a magic number to check that initializers are called.
@@ -558,4 +562,8 @@ static inline wuffs_base__empty_struct wuffs_base__io_writer__set_mark(
return ((wuffs_base__empty_struct){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PRIVATE
@@ -21,6 +21,10 @@
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
// Wuffs assumes that:
// - converting a uint32_t to a size_t will never overflow.
// - converting a size_t to a uint64_t will never overflow.
@@ -1228,4 +1232,8 @@ static inline wuffs_base__table_u8 wuffs_base__image_buffer__plane(
: ((wuffs_base__table_u8){});
}
#ifdef __cplusplus
} // extern "C"
#endif
#endif // WUFFS_INCLUDE_GUARD__BASE_PUBLIC