Skip to content

Commit

Permalink
Removed SWIG ifdefs in physfs.h
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 16, 2017
1 parent 53225ca commit 9cec66b
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions src/physfs.h
Expand Up @@ -224,8 +224,6 @@ extern "C" {

#if defined(PHYSFS_DECL)
/* do nothing. */
#elif (defined SWIG)
#define PHYSFS_DECL extern
#elif (defined _MSC_VER)
#define PHYSFS_DECL __declspec(dllexport)
#elif (defined __SUNPRO_C)
Expand All @@ -238,8 +236,6 @@ extern "C" {

#if defined(PHYSFS_DEPRECATED)
/* do nothing. */
#elif (defined SWIG) /* ignore deprecated, since bindings use everything. */
#define PHYSFS_DEPRECATED
#elif (__GNUC__ >= 4) /* technically, this arrived in gcc 3.1, but oh well. */
#define PHYSFS_DEPRECATED __attribute__((deprecated))
#else
Expand Down Expand Up @@ -321,7 +317,6 @@ typedef signed long long PHYSFS_sint64;
#endif


#ifndef SWIG
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
/* Make sure the types really have the right sizes */
#define PHYSFS_COMPILE_TIME_ASSERT(name, x) \
Expand All @@ -342,7 +337,6 @@ PHYSFS_COMPILE_TIME_ASSERT(sint64, sizeof(PHYSFS_sint64) == 8);
#undef PHYSFS_COMPILE_TIME_ASSERT

#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
#endif /* SWIG */


/**
Expand Down Expand Up @@ -436,8 +430,6 @@ typedef struct PHYSFS_Version
} PHYSFS_Version;


#ifndef SWIG /* not available from scripting languages. */

#ifndef DOXYGEN_SHOULD_IGNORE_THIS
#define PHYSFS_VER_MAJOR 2
#define PHYSFS_VER_MINOR 1
Expand Down Expand Up @@ -470,8 +462,6 @@ typedef struct PHYSFS_Version
(x)->patch = PHYSFS_VER_PATCH; \
}

#endif /* SWIG */


/**
* \fn void PHYSFS_getLinkedVersion(PHYSFS_Version *ver)
Expand Down Expand Up @@ -1491,8 +1481,6 @@ PHYSFS_DECL int PHYSFS_flush(PHYSFS_File *handle);

/* Byteorder stuff... */

#ifndef SWIG /* not available from scripting languages. */

/**
* \fn PHYSFS_sint16 PHYSFS_swapSLE16(PHYSFS_sint16 val)
* \brief Swap littleendian signed 16 to platform's native byte order.
Expand Down Expand Up @@ -1657,8 +1645,6 @@ PHYSFS_DECL PHYSFS_sint64 PHYSFS_swapSBE64(PHYSFS_sint64 val);
*/
PHYSFS_DECL PHYSFS_uint64 PHYSFS_swapUBE64(PHYSFS_uint64 val);

#endif /* SWIG */


/**
* \fn int PHYSFS_readSLE16(PHYSFS_File *file, PHYSFS_sint16 *val)
Expand Down Expand Up @@ -2094,8 +2080,6 @@ PHYSFS_DECL int PHYSFS_isInit(void);
PHYSFS_DECL int PHYSFS_symbolicLinksPermitted(void);


#ifndef SWIG /* not available from scripting languages. */

/**
* \struct PHYSFS_Allocator
* \brief PhysicsFS allocation function pointers.
Expand Down Expand Up @@ -2155,8 +2139,6 @@ typedef struct PHYSFS_Allocator
*/
PHYSFS_DECL int PHYSFS_setAllocator(const PHYSFS_Allocator *allocator);

#endif /* SWIG */


/**
* \fn int PHYSFS_mount(const char *newDir, const char *mountPoint, int appendToPath)
Expand Down Expand Up @@ -2228,8 +2210,6 @@ PHYSFS_DECL int PHYSFS_mount(const char *newDir,
PHYSFS_DECL const char *PHYSFS_getMountPoint(const char *dir);


#ifndef SWIG /* not available from scripting languages. */

/**
* \typedef PHYSFS_StringCallback
* \brief Function signature for callbacks that report strings.
Expand Down Expand Up @@ -2599,7 +2579,6 @@ PHYSFS_DECL int PHYSFS_unmount(const char *oldDir);
*/
PHYSFS_DECL const PHYSFS_Allocator *PHYSFS_getAllocator(void);

#endif /* SWIG */

/**
* \enum PHYSFS_FileType
Expand Down Expand Up @@ -2665,8 +2644,6 @@ typedef struct PHYSFS_Stat
PHYSFS_DECL int PHYSFS_stat(const char *fname, PHYSFS_Stat *stat);


#ifndef SWIG /* not available from scripting languages. */

/**
* \fn void PHYSFS_utf8FromUtf16(const PHYSFS_uint16 *src, char *dst, PHYSFS_uint64 len)
* \brief Convert a UTF-16 string to a UTF-8 string.
Expand Down Expand Up @@ -2726,8 +2703,6 @@ PHYSFS_DECL void PHYSFS_utf8FromUtf16(const PHYSFS_uint16 *src, char *dst,
PHYSFS_DECL void PHYSFS_utf8ToUtf16(const char *src, PHYSFS_uint16 *dst,
PHYSFS_uint64 len);

#endif /* SWIG */


/**
* \fn PHYSFS_sint64 PHYSFS_readBytes(PHYSFS_File *handle, void *buffer, PHYSFS_uint64 len)
Expand Down Expand Up @@ -2775,8 +2750,6 @@ PHYSFS_DECL PHYSFS_sint64 PHYSFS_writeBytes(PHYSFS_File *handle,
PHYSFS_uint64 len);


#ifndef SWIG /* not available from scripting languages. */

/**
* \struct PHYSFS_Io
* \brief An abstract i/o interface.
Expand Down Expand Up @@ -3006,7 +2979,6 @@ typedef struct PHYSFS_Io
PHYSFS_DECL int PHYSFS_mountIo(PHYSFS_Io *io, const char *fname,
const char *mountPoint, int appendToPath);

#endif /* SWIG */

/**
* \fn int PHYSFS_mountMemory(const void *ptr, PHYSFS_uint64 len, void (*del)(void *), const char *fname, const char *mountPoint, int appendToPath)
Expand Down

0 comments on commit 9cec66b

Please sign in to comment.