summaryrefslogtreecommitdiffstats
path: root/gst/modplug/libmodplug/stdafx.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst/modplug/libmodplug/stdafx.h')
-rw-r--r--gst/modplug/libmodplug/stdafx.h44
1 files changed, 25 insertions, 19 deletions
diff --git a/gst/modplug/libmodplug/stdafx.h b/gst/modplug/libmodplug/stdafx.h
index dc71ea8f..76b8f67f 100644
--- a/gst/modplug/libmodplug/stdafx.h
+++ b/gst/modplug/libmodplug/stdafx.h
@@ -19,7 +19,10 @@
#include <mmsystem.h>
#include <stdio.h>
-inline void ProcessPlugins(int n) {}
+inline void
+ProcessPlugins (int n)
+{
+}
#else
@@ -29,7 +32,7 @@ inline void ProcessPlugins(int n) {}
typedef signed char CHAR;
typedef unsigned char UCHAR;
-typedef unsigned char* PUCHAR;
+typedef unsigned char *PUCHAR;
typedef unsigned short USHORT;
typedef unsigned long ULONG;
typedef unsigned long UINT;
@@ -37,23 +40,24 @@ typedef unsigned long DWORD;
typedef long LONG;
typedef unsigned short WORD;
typedef unsigned char BYTE;
-typedef unsigned char * LPBYTE;
+typedef unsigned char *LPBYTE;
typedef bool BOOL;
-typedef char * LPSTR;
-typedef void * LPVOID;
-typedef long * LPLONG;
-typedef unsigned long * LPDWORD;
-typedef unsigned short * LPWORD;
-typedef const char * LPCSTR;
+typedef char *LPSTR;
+typedef void *LPVOID;
+typedef long *LPLONG;
+typedef unsigned long *LPDWORD;
+typedef unsigned short *LPWORD;
+typedef const char *LPCSTR;
typedef long long LONGLONG;
-typedef void * PVOID;
+typedef void *PVOID;
typedef void VOID;
-inline LONG MulDiv (long a, long b, long c)
+inline LONG
+MulDiv (long a, long b, long c)
{
/* if (!c) return 0; */
- return ((unsigned long long) a * (unsigned long long) b ) / c;
+ return ((unsigned long long) a * (unsigned long long) b) / c;
}
#define MODPLUG_NO_FILESAVE
@@ -67,15 +71,20 @@ inline LONG MulDiv (long a, long b, long c)
#define GHND 0
-inline signed char * GlobalAllocPtr(unsigned int, size_t size)
+inline signed char *
+GlobalAllocPtr (unsigned int, size_t size)
{
- signed char * p = (signed char *) malloc(size);
+ signed char *p = (signed char *) malloc (size);
- if (p != NULL) memset(p, 0, size);
+ if (p != NULL)
+ memset (p, 0, size);
return p;
}
-inline void ProcessPlugins(int n) {}
+inline void
+ProcessPlugins (int n)
+{
+}
#define GlobalFreePtr(p) free((void *)(p))
@@ -93,6 +102,3 @@ inline void ProcessPlugins(int n) {}
#endif /* MSC_VER */
#endif
-
-
-