Commit 369ad45c authored by anonymous's avatar anonymous
Browse files

Fix mingw32 build

parent e6b6111d
......@@ -21,12 +21,6 @@
#include "config.h"
#endif
#if defined(__MINGW32__)
/* fseeko64() prototypes from stdio.h */
# undef __STRICT_ANSI__
# define fseeko fseeko64
#endif
#include "file_default.h"
#include "file.h"
......@@ -37,6 +31,12 @@
#include <stdio.h>
#include <stdlib.h>
#if defined(__MINGW32__)
/* fseeko64() prototypes from stdio.h */
# undef __STRICT_ANSI__
# define fseeko fseeko64
#endif
static void _file_close(BDPLUS_FILE_H *file)
{
if (file) {
......
......@@ -22,6 +22,7 @@
#define BDPLUS_DATA_H_INCLUDED
#include "util/attributes.h"
#include "util/mutex.h"
#include "internal.h"
......@@ -54,7 +55,7 @@ struct bdplus_s {
struct bdplus_config_s *config;
struct bd_mutex_s *mutex;
BD_MUTEX *mutex;
uint8_t loaded;
uint8_t started;
......
......@@ -85,7 +85,7 @@ struct bd_mutex_s {
BD_PRIVATE int bd_mutex_init(BD_MUTEX *p);
BD_PRIVATE int bd_mutex_destroy(BD_MUTEX *p);
static int bd_mutex_lock(BD_MUTEX *p)
static inline int bd_mutex_lock(BD_MUTEX *p)
{
if (pthread_equal(p->owner, pthread_self())) {
/* recursive lock */
......@@ -104,7 +104,7 @@ static int bd_mutex_lock(BD_MUTEX *p)
return 0;
}
static int bd_mutex_unlock(BD_MUTEX *p)
static inline int bd_mutex_unlock(BD_MUTEX *p)
{
if (!pthread_equal(p->owner, pthread_self())) {
BD_DEBUG(DBG_BLURAY|DBG_CRIT, "bd_mutex_unlock(): not owner !\n");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment