#include <assert.h>
#ifdef _MSC_VER
+#define inline __inline
+#define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
#define snprintf _snprintf
#define X264_VERSION "" // no configure script for msvc
#endif
#define x264_alloca(x) (void*)(((intptr_t) alloca((x)+15)+15)&~15)
#endif
+#ifdef _MSC_VER
+#define DECLARE_ALIGNED( type, var, n ) __declspec(align(n)) type var
+#else
+#define DECLARE_ALIGNED( type, var, n ) type var __attribute__((aligned(n)))
+#endif
+
/* threads */
#if defined(__WIN32__) && defined(HAVE_PTHREAD)
#include <pthread.h>
* close an encoder handler */
void x264_encoder_close ( x264_t * );
-/****************************************************************************
- * Private stuff for internal usage:
- ****************************************************************************/
-#ifdef __X264__
-# ifdef _MSC_VER
-# define inline __inline
-# define DECLARE_ALIGNED( type, var, n ) __declspec(align(n)) type var
-# define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
-# else
-# define DECLARE_ALIGNED( type, var, n ) type var __attribute__((aligned(n)))
-# endif
-#endif
-
#endif