Commit 88d049d1 authored by Rémi Assailly's avatar Rémi Assailly Committed by Alexandre Julliard

Added missing declarations in some headers.

parent 68fc5f88
...@@ -177,15 +177,19 @@ inline static int wine_ldt_is_empty( const LDT_ENTRY *ent ) ...@@ -177,15 +177,19 @@ inline static int wine_ldt_is_empty( const LDT_ENTRY *ent )
#ifdef __i386__ #ifdef __i386__
# ifdef __GNUC__ # ifdef __GNUC__
# define __DEFINE_GET_SEG(seg) \ # define __DEFINE_GET_SEG(seg) \
extern inline unsigned short wine_get_##seg(void); \
extern inline unsigned short wine_get_##seg(void) \ extern inline unsigned short wine_get_##seg(void) \
{ unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; } { unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
# define __DEFINE_SET_SEG(seg) \ # define __DEFINE_SET_SEG(seg) \
extern inline void wine_set_##seg(int val); \
extern inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); } extern inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
# elif defined(_MSC_VER) # elif defined(_MSC_VER)
# define __DEFINE_GET_SEG(seg) \ # define __DEFINE_GET_SEG(seg) \
extern inline unsigned short wine_get_##seg(void); \
extern inline unsigned short wine_get_##seg(void) \ extern inline unsigned short wine_get_##seg(void) \
{ unsigned short res; __asm { mov res, seg } return res; } { unsigned short res; __asm { mov res, seg } return res; }
# define __DEFINE_SET_SEG(seg) \ # define __DEFINE_SET_SEG(seg) \
extern inline void wine_set_##seg(unsigned short val); \
extern inline void wine_set_##seg(unsigned short val) { __asm { mov seg, val } } extern inline void wine_set_##seg(unsigned short val) { __asm { mov seg, val } }
# else /* __GNUC__ || _MSC_VER */ # else /* __GNUC__ || _MSC_VER */
# define __DEFINE_GET_SEG(seg) extern unsigned short wine_get_##seg(void); # define __DEFINE_GET_SEG(seg) extern unsigned short wine_get_##seg(void);
......
...@@ -381,6 +381,12 @@ extern int spawnvp(int mode, const char *cmdname, const char * const argv[]); ...@@ -381,6 +381,12 @@ extern int spawnvp(int mode, const char *cmdname, const char * const argv[]);
#if defined(__i386__) && defined(__GNUC__) #if defined(__i386__) && defined(__GNUC__)
extern inline long interlocked_cmpxchg( long *dest, long xchg, long compare );
extern inline void *interlocked_cmpxchg_ptr( void **dest, void *xchg, void *compare );
extern inline long interlocked_xchg( long *dest, long val );
extern inline void *interlocked_xchg_ptr( void **dest, void *val );
extern inline long interlocked_xchg_add( long *dest, long incr );
extern inline long interlocked_cmpxchg( long *dest, long xchg, long compare ) extern inline long interlocked_cmpxchg( long *dest, long xchg, long compare )
{ {
long ret; long ret;
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
# include <io.h> # include <io.h>
#endif #endif
#include "wine/wpp.h"
#include "wpp_private.h" #include "wpp_private.h"
struct pp_status pp_status; struct pp_status pp_status;
......
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