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

+20 -4
View File
@@ -24,6 +24,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.
@@ -1248,18 +1252,22 @@ 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
// ---------------- Use Declarations
// ---------------- Use Declarations
// ---------------- BEGIN USE "std/adler32"
// ---------------- BEGIN USE "std/adler32"
#ifndef WUFFS_INCLUDE_GUARD__ADLER32
#define WUFFS_INCLUDE_GUARD__ADLER32
// Code generated by wuffs-c. DO NOT EDIT.
// Code generated by wuffs-c. DO NOT EDIT.
// ---------------- Use Declarations
// ---------------- Use Declarations
#ifdef __cplusplus
extern "C" {
@@ -1563,6 +1571,10 @@ wuffs_base__status wuffs_zlib__decoder__decode(wuffs_zlib__decoder* self,
// 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.
@@ -2104,6 +2116,10 @@ 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
#if !defined(WUFFS_CONFIG__MODULES) || defined(WUFFS_CONFIG__MODULE__ZLIB)