Move GMIO_C_LINKAGE_BEGIN where really useful

This commit is contained in:
Hugues Delorme 2015-03-13 11:07:07 +01:00
parent 002c3eae66
commit 5d29d48de0
3 changed files with 6 additions and 5 deletions

View File

@ -22,8 +22,6 @@
#include "global.h"
GMIO_C_LINKAGE_BEGIN
/*! This enum identifies common endianness (byte order) of computer memory */
enum gmio_endianness
{
@ -35,6 +33,8 @@ enum gmio_endianness
typedef enum gmio_endianness gmio_endianness_t;
GMIO_C_LINKAGE_BEGIN
/*! Returns endianness (byte order) of the host's CPU architecture */
GMIO_LIB_EXPORT gmio_endianness_t gmio_host_endianness();

View File

@ -22,7 +22,6 @@
#include "global.h"
GMIO_C_LINKAGE_BEGIN
/*! This enum defines common errors */
enum gmio_error
@ -49,6 +48,8 @@ enum gmio_error
typedef enum gmio_error gmio_error_t;
GMIO_C_LINKAGE_BEGIN
/*! Returns true if \p code == GMIO_NO_ERROR */
GMIO_LIB_EXPORT gmio_bool_t gmio_no_error(int code);

View File

@ -23,8 +23,6 @@
#include "stl_global.h"
#include "../gmio_core/stream.h"
GMIO_C_LINKAGE_BEGIN
/*! This enums defines the various STL formats */
enum gmio_stl_format
{
@ -36,6 +34,8 @@ enum gmio_stl_format
typedef enum gmio_stl_format gmio_stl_format_t;
GMIO_C_LINKAGE_BEGIN
/*! Returns the format of the STL data in \p stream
*
* It will try to read 512 bytes from \p stream into a buffer and then