search for: __emx__

Displaying 20 results from an estimated 23 matches for "__emx__".

2017 Feb 09
1
[PATCH] Fix compile with cygwin
...;; diff --git a/include/share/compat.h b/include/share/compat.h index f74a5c1..2ad40fb 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -98,7 +98,7 @@ #define FLAC__STRNCASECMP strncasecmp #endif -#if defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ || defined __EMX__ +#if defined _MSC_VER || defined __MINGW32__ || defined __EMX__ #include <io.h> /* for _setmode(), chmod() */ #include <fcntl.h> /* for _O_BINARY */ #else diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 2e1fdd5..d3b6e03 100644 --- a/src/libFLAC/stream_d...
2012 Feb 07
2
[PATCH] Remove even more CPP hackery
...eletions(-) diff --git a/include/FLAC/ordinals.h b/include/FLAC/ordinals.h index 80d055b..dc2dafc 100644 --- a/include/FLAC/ordinals.h +++ b/include/FLAC/ordinals.h @@ -32,10 +32,18 @@ #ifndef FLAC__ORDINALS_H #define FLAC__ORDINALS_H -#if !(defined(_MSC_VER) || defined(__BORLANDC__) || defined(__EMX__)) +#if HAVE_CONFIG_H +# include <config.h> +#endif + +#if !(defined(_MSC_VER) || defined(__BORLANDC__)) #include <inttypes.h> #endif +#if HAVE_STDINT_H +#include <stdint.h> +#endif + typedef signed char FLAC__int8; typedef unsigned char FLAC__uint8; @@ -46,13 +54,6 @@ typed...
2013 Apr 02
2
flac 1.3.0pre3 pre-release
...or flactimer. Applied, thanks. > I noticed compat.h patch didn't make it into git. I know it may not be > perfect patch but unistd.h is in two different #ifdef checks. First one > is fine when it's excluded on _WIN32 but second check gives is for > everyone if __CYGWIN__ or __EMX__ isn't defined. That has to be a mistake. Someone with access to those systems needs to test this. If it doesn't get tested it won't make it into the release. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
2000 Dec 15
2
Ports
...believe someone >else ported it to OS/2 a while ago - and sent me a patch for oggenc >support. I don't know whether oggenc actually works with OS/2 though, since >I don't have a system to test it on. Yeah, I noticed that there's a couple of entries in platform.c #ifdef'ed __EMX__ (EMX is an OS/2 port of gcc). For the vorbis module: Index: lib/os.h =================================================================== RCS file: /usr/local/cvsroot/vorbis/lib/os.h,v retrieving revision 1.17 diff -u -r1.17 os.h --- lib/os.h 2000/12/13 18:12:34 1.17 +++ lib/os.h 2000/12/15 09:49:...
2017 Jan 22
7
os/2 support using Watcom
The attached set of patches adds support for OS/2 using Watcom compiler (tested with Open Watcom 1.9). My only interest was building a working dll (the last patch in the set adds a makefile for it), therefore I did not touch other places: If there is interest, I can do so. Regards. -- O.S. -------------- next part -------------- A non-text attachment was scrubbed... Name:
2013 Apr 07
0
flac 1.3.0pre3 pre-release
...3 12:57, Erik de Castro Lopo wrote: > I noticed compat.h patch didn't make it into git. I know it may not be > perfect patch but unistd.h is in two different #ifdef checks. First one > is fine when it's excluded on _WIN32 but second check gives is for > everyone if __CYGWIN__ or __EMX__ isn't defined. That has to be a mistake. > Someone with access to those systems needs to test this. If it doesn't > get tested it won't make it into the release. > > Erik Here's one more try to solve the compilation problem when non-existing unistd.h is tried to includ...
2008 Aug 13
4
MinGW Patch
Hello, I was trying to compile Flac on MinGW/Msys but got an error stating SIZE_T_MAX is undefined. To fix this error I edited the file "flac-1.2.1/include/share/alloc.h" and made the following change: Starting at line #36 I changed: #ifndef SIZE_MAX # ifndef SIZE_T_MAX # ifdef _MSC_VER # define SIZE_T_MAX UINT_MAX # else # error # endif # endif # define SIZE_MAX SIZE_T_MAX
2017 Jan 22
0
os/2 support using Watcom
...;>> dll (the last patch in the set adds a makefile for it), therefore I did >>>> not touch other places: If there is interest, I can do so. >>> >> >> Disclaimer: I don't know much about EMX. That aside, >> >>> Most of the patches can have s/__EMX__/__OS2__/ >> >> I intentionally kept __EMX__ checks because, IIRC, old gcc versions >> (2.8?? can't remember) did define __EMX__ but not __OS2__ > > Flac won't compile with old EMX, if only due to the lack of the stdint > types. Pretty sure it's missing other m...
2008 May 10
3
Patch : Fix cross-compiling from Linux to windows
Hi all, The following patch fixes cross compiling from Linux to windows. The existing code was doing: #if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__ #include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */ #endif when it seems to make much more sense to just test for the presence of <stdint.h> and do: #ifdef HAVE_STDINT_H #include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it...
2000 Sep 10
2
Vorbis on OS/2
...nto some problems with the examples. EMX needs stdout (but not stdin) set to binary mode to work properly. Could someone with CVS access please add the following three lines below the WIN32 binary fix in examples/vorbisfile_example.c examples/encoder_example.c examples/decoder_example.c #ifdef __EMX__ /* OS/2 EMX System needs stdout set to binary */ _fsetmode(stdout,"b"); #endif With this in place, cat <ogg file> | vorbisfile_example > <wav file> followed by wavplay <wav file> works fine I'll take a look at ogg123 and see about the posibilities of maki...
2013 Apr 01
2
flac 1.3.0pre3 pre-release
Janne Hyv?rinen wrote: > Zip with random patches: > > flac_mac: fixes some missing parameters from safe string handling > changes in flac_mac's main.c > flac_mac_project: adds flac's include dir for the project so new > functions can be found > progress_display: flac testing progress display used old functions that > didn't get utf-8 decoding >
2008 Aug 13
0
MinGW Patch
...-----8<-------8<------- --- include/share/alloc.h 2008-06-29 21:43:05.000000000 +1000 +++ include/share/alloc.h 2008-08-13 14:38:33.000000000 +1000 @@ -28,7 +28,7 @@ */ #include <limits.h> /* for SIZE_MAX */ -#if !defined _MSC_VER && !defined __MINGW32__ && !defined __EMX__ +#if HAVE_STDINT_H #include <stdint.h> /* for SIZE_MAX in case limits.h didn't get it */ #endif #include <stdlib.h> /* for size_t, malloc(), etc */ -------8<-------8<-------8<-------8<-------8<-------8<-------8<------- Does that work for MinGW? > Hope I...
2012 Feb 08
0
[PATCH] Remove even more CPP hackery
.../FLAC/ordinals.h b/include/FLAC/ordinals.h index 80d055b..dc2dafc 100644 --- a/include/FLAC/ordinals.h +++ b/include/FLAC/ordinals.h @@ -32,10 +32,18 @@ #ifndef FLAC__ORDINALS_H #define FLAC__ORDINALS_H -#if !(defined(_MSC_VER) || defined(__BORLANDC__) || defined(__EMX__)) +#if HAVE_CONFIG_H +# include <config.h> +#endif + +#if !(defined(_MSC_VER) || defined(__BORLANDC__)) #include <inttypes.h> #endif +#if HAVE_STDINT_H +#include <stdint.h> +#endif + typedef signed char FLAC__int8; typ...
2013 May 15
2
FLAC currently won't compile for Android [bisected]
Felix Homann wrote: > Here are the warnings I get with 03a9e6064d406e3656afacdbe50e8e47ebfa0de3: It seems Android sys/param.h doesn't define MIN/MAX. Could you try to revert this commit on current master (or simply change line 35 of src/libFLAC/include/private/macros.h back to #if defined(__GNUC__) ) and recompile? Or possibly bisect 03a9e60..master to find out when the
2013 May 23
2
FLAC currently won't compile for Android [bisected]
...src/flac/utils.c b/src/flac/utils.c index e908706..6f6382e 100644 --- a/src/flac/utils.c +++ b/src/flac/utils.c @@ -171,13 +171,13 @@ static int console_chars_left; int get_console_width(void) { int width = 80; -#ifdef _WIN32 +#if defined _WIN32 width = win_get_console_width(); #elif defined __EMX__ - int s[2]; - _scrsize (s); - width = s[0]; -#else + int s[2]; + _scrsize (s); + width = s[0]; +#elif !defined __ANDROID__ struct winsize w; if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &w) != -1) width = w.ws_col; #endif
2017 Jan 22
0
os/2 support using Watcom
...tches adds support for OS/2 using Watcom compiler > (tested with Open Watcom 1.9). My only interest was building a working > dll (the last patch in the set adds a makefile for it), therefore I did > not touch other places: If there is interest, I can do so. Most of the patches can have s/__EMX__/__OS2__/ excepting the nasm.h one. nasm.h should test for OBJ_FORMAT_obj as obj is also correct when building with GCC flags -Zomf. Not sure about the assembly prefix as generally cdecl is correct for OS/2, perhaps test for defined (__WATCOMC__) && defined (__OS2__) Will the GCC built f...
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
...100644 --- a/src/share/grabbag/file.c +++ b/src/share/grabbag/file.c @@ -27,7 +27,6 @@ #include <fcntl.h> /* for _O_BINARY */ #else #include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */ -#include <utime.h> /* for utime() */ #endif #if defined __EMX__ #include <io.h> /* for setmode(), O_BINARY */ @@ -53,11 +52,17 @@ void grabbag__file_copy_metadata(const char *srcpath, const char *destpath) { struct flac_stat_s srcstat; - struct utimbuf srctime; if(0 == flac_stat(srcpath, &srcstat)) { +#if _POSIX_C_SOURCE >= 200809L + stru...
2013 Apr 02
0
flac 1.3.0pre3 pre-release
...#39;s patches for the changes in git for flactimer. I noticed compat.h patch didn't make it into git. I know it may not be perfect patch but unistd.h is in two different #ifdef checks. First one is fine when it's excluded on _WIN32 but second check gives is for everyone if __CYGWIN__ or __EMX__ isn't defined. That has to be a mistake. -------------- next part -------------- diff --git a/src/monkeys_audio_utilities/flac_mac/main.c b/src/monkeys_audio_utilities/flac_mac/main.c index 8c8fa3d..8ffa5b6 100644 --- a/src/monkeys_audio_utilities/flac_mac/main.c +++ b/src/monkeys_audio_utilit...
2001 Apr 18
3
[Patch] OS/2 port
...ogg/os_types.h Tue Feb 27 00:29:50 2001 @@ -43,10 +43,7 @@ typedef _G_int16_t ogg_int16_t; # endif -#else - - -# ifdef macintosh +#elif defined(macintosh) #include <sys/types.h> @@ -55,20 +52,24 @@ typedef UInt32 ogg_uint32_t; typedef SInt64 ogg_int64_t; -# else +#elif defined(__EMX__) + +typedef short ogg_int16_t; +typedef int ogg_int32_t; +typedef unsigned int ogg_uint32_t; +typedef long long ogg_int64_t; -# ifdef __BEOS__ +#else + +# ifdef __BEOS__ /* Be */ #include <inttypes.h> -# endif +# endif #include <sys/types.h> #include <ogg/config_t...
2012 Feb 07
5
[PATCH] Remove even more CPP hackery
On 02/07/12 12:03 am, Erik de Castro Lopo wrote: > Dave Yeo wrote: > >> This commit will break OS/2's EMX 0.9d library (GCC 2.8.1) which has been >> been replaced by klibc. Considering the age of EMX and lack of testing >> and that klibc contains so many improvements I think this is exceptable. > > Sorry Dave, I can't do that. Or rather sorry, the patch