Changeset 1756
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/wandio.c
r1727 r1756 125 125 #endif 126 126 127 io_t *wandio_create(const char *filename)127 DLLEXPORT io_t *wandio_create(const char *filename) 128 128 { 129 129 parse_env(); … … 173 173 } 174 174 175 off_t wandio_tell(io_t *io)175 DLLEXPORT off_t wandio_tell(io_t *io) 176 176 { 177 177 if (!io->source->tell) { … … 182 182 } 183 183 184 off_t wandio_seek(io_t *io, off_t offset, int whence)184 DLLEXPORT off_t wandio_seek(io_t *io, off_t offset, int whence) 185 185 { 186 186 if (!io->source->seek) { … … 191 191 } 192 192 193 off_t wandio_read(io_t *io, void *buffer, off_t len)193 DLLEXPORT off_t wandio_read(io_t *io, void *buffer, off_t len) 194 194 { 195 195 off_t ret; … … 201 201 } 202 202 203 off_t wandio_peek(io_t *io, void *buffer, off_t len)203 DLLEXPORT off_t wandio_peek(io_t *io, void *buffer, off_t len) 204 204 { 205 205 off_t ret; … … 216 216 } 217 217 218 void wandio_destroy(io_t *io)218 DLLEXPORT void wandio_destroy(io_t *io) 219 219 { 220 220 if (keep_stats) … … 223 223 } 224 224 225 iow_t *wandio_wcreate(const char *filename, int compress_type, int compression_level, int flags)225 DLLEXPORT iow_t *wandio_wcreate(const char *filename, int compress_type, int compression_level, int flags) 226 226 { 227 227 iow_t *iow; … … 262 262 } 263 263 264 off_t wandio_wwrite(iow_t *iow, const void *buffer, off_t len)264 DLLEXPORT off_t wandio_wwrite(iow_t *iow, const void *buffer, off_t len) 265 265 { 266 266 #if WRITE_TRACE … … 270 270 } 271 271 272 void wandio_wdestroy(iow_t *iow)272 DLLEXPORT void wandio_wdestroy(iow_t *iow) 273 273 { 274 274 iow->source->close(iow); -
trunk/lib/wandio.h
r1727 r1756 39 39 #include <inttypes.h> 40 40 #include <stdbool.h> 41 42 #if __GNUC__ >= 4 43 #ifdef LT_BUILDING_DLL 44 #define DLLEXPORT __attribute__ ((visibility("default"))) 45 #define DLLLOCAL __attribute__ ((visibility("hidden"))) 46 #else 47 #define DLLEXPORT 48 #define DLLLOCAL 49 #endif 50 #else 51 #define DLLEXPORT 52 #define DLLLOCAL 53 #endif 54 55 41 56 42 57 /** @file
Note: See TracChangeset
for help on using the changeset viewer.
