summaryrefslogtreecommitdiff
path: root/src/libffmpeg/libavcodec/os_support.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libffmpeg/libavcodec/os_support.h')
-rw-r--r--src/libffmpeg/libavcodec/os_support.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libffmpeg/libavcodec/os_support.h b/src/libffmpeg/libavcodec/os_support.h
index 879bc470d..93930f03b 100644
--- a/src/libffmpeg/libavcodec/os_support.h
+++ b/src/libffmpeg/libavcodec/os_support.h
@@ -11,6 +11,7 @@
*/
#ifdef __MINGW32__
+# undef DATADIR /* clashes with /usr/include/w32api/objidl.h */
# include <windows.h>
# define usleep(t) Sleep((t) / 1000)
#endif
@@ -29,4 +30,8 @@ static inline float floorf(float f) { return floor(f); }
static inline int strcasecmp(const char* s1, const char* s2) { return stricmp(s1,s2); }
#endif
+#if defined(CONFIG_SUNOS)
+static inline float floorf(float f) { return floor(f); }
+#endif
+
#endif /* _OS_SUPPORT_H */