Displaying 3 results from an estimated 3 matches for "__platform_h".
2002 Apr 11
1
alloca + configure.in
...form.h
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/platform.h,v
retrieving revision 1.7
diff -u -r1.7 platform.h
--- oggenc/platform.h 2001/09/15 15:11:03 1.7
+++ oggenc/platform.h 2002/04/12 01:52:11
@@ -1,9 +1,11 @@
#ifndef __PLATFORM_H
#define __PLATFORM_H
+#include <config.h>
+
#include <stdio.h>
-#ifdef __sun
+#ifdef HAVE_ALLOCA_H
#include <alloca.h>
#endif
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send...
2010 Apr 21
1
[PATCH matahari] Created a new platform-abstraction layer named Platform.
...O this is where we decide which implementation to use
+ if(!_instance)
+ {
+ _instance = new LinuxPlatform;
+ }
+
+ return _instance;
+}
diff --git a/src/platform.h b/src/platform.h
new file mode 100644
index 0000000..514ad20
--- /dev/null
+++ b/src/platform.h
@@ -0,0 +1,62 @@
+#ifndef __PLATFORM_H
+#define __PLATFORM_H
+
+/* platform.h - Copyright (C) 2010 Red Hat, Inc.
+ * Written by Darryl L. Pierce <dpierce at redhat.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free...
2000 Dec 15
2
Ports
...1.1.1
+++ oggenc/platform.h 2000/12/15 10:05:03
@@ -3,7 +3,7 @@
#include <stdio.h>
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__OS2__)
char *rindex(char *s, int c);
void setbinmode(FILE *);
@@ -13,6 +13,8 @@
#define setbinmode(x)
#endif
+
+void lower_priority();
#endif /* __PLATFORM_H */
===== CUT HERE ====================================================
Is that ok so far? I've also got some patches for encoder/decoder examples but
they're not that important and will apparently send me to hell :)
--
_________________________________________________________________...