search for: setbinmod

Displaying 7 results from an estimated 7 matches for "setbinmod".

Did you mean: setbinmode
2000 Dec 15
2
Ports
...#ifdef __OS2__ +#define INCL_DOS +#define INCL_NOPMAPI +#include <os2.h> +#endif + +#if defined(_WIN32) || defined(__WATCOMC__) /* This doesn't seem to exist on windows */ char *rindex(char *s, int c) { @@ -35,7 +41,9 @@ } return ret; } +#endif +#ifdef _WIN32 void setbinmode(FILE *f) { _setmode( _fileno(f), _O_BINARY ); @@ -49,8 +57,14 @@ } #endif +#ifdef __WATCOMC__ +void setbinmode(FILE *f) +{ + setmode( fileno(f), O_BINARY ); +} +#endif -#if defined(_WIN32) || defined(__EMX__) +#if defined(_WIN32) || defined(__EMX__) || defined(__WATCOMC__) void *t...
2001 Jan 29
1
Building vorbis - please help
I realize not many people (one :) ) want to build vorbis with BCB, but what about vorbisfile.c, os.h, oggenc.c, and getopt? And someone must care about the MSVC files. I really tried not to bring up any questions about BCB itself (although I had some). Please, someone, take a look at the original message, and excuse me if I'm too impatient...
2000 Sep 10
2
Vorbis on OS/2
Following a few months of lurking on the list, and vainly trying to get vorbis to compile on os/2, I finally managed to get the nightly gzip from saturday to compile (fairly) cleanly, and so have finally been able to play with Vorbis on my OS of choice :) Using the EMX runtime system, and bash for OS/2 (along with a few ported GNU apps), both configure and make work fine (except for ogg123
2004 Aug 06
0
new utility - ezstream
...t; > oddsock > I haven't yet looked at the code, but for stdin to work correctly on windows, you usually need to call: _setmode(_fileno(stdin), _O_BINARY); That's for MSVC. There are different variations on this for other platforms and other win32 compilers - see oggenc/platform.c:setbinmode() if you need to know. Mike <p>--- >8 ---- List archives: http://www.xiph.org/archives/ icecast project homepage: http://www.icecast.org/ To unsubscribe from this list, send a message to 'icecast-request@xiph.org' containing only the word 'unsubscribe' in the body. No...
2001 Jan 31
1
Syntax error....
...c ./vorbis-tools/oggenc/platform.c --- ../OggVorbis.clean/vorbis-tools/oggenc/platform.c Thu Feb 1 01:25:36 2001 +++ ./vorbis-tools/oggenc/platform.c Thu Feb 1 01:23:08 2001 @@ -52,7 +58,7 @@ } #endif -#ifdef __WATCOMC__ || __BORLANDC__ +#if defined(__WATCOMC__) || defined(__BORLANDC__) void setbinmode(FILE *f) { setmode(fileno(f), O_BINARY); -- ______________________________________________________________________________ | Brian Havard | "He is not the messiah! | | brianh@kheldar.apana.org.au | He's a very naughty boy!" - Lif...
2004 Aug 06
2
new utility - ezstream
At 03:07 PM 1/30/2004, you wrote: >Thanks for your work on this oddsock. It's a major feature that's been >missing from the Win32 environment. I presume you will be offering a Win32 >binary on your site at some stage. why sure! http://www.icecast.org:8082/files/ezstream_win32_0.1.0_setup.exe also, a note of mention, reading from stdin seems to be broken on win32, but works
2001 Jan 27
0
Vorbis with BCB
...d(_WIN32) && !defined(__BORLANDC__) But it should probably be something like this: #if defined(_WIN32) && defined(__MSVC__) Or shortened to: #ifdef __MSVC__ With what ever constant that MSVC defines as its own. The same thing appears in 'platform.c' when defining 'setbinmode'. I'm not sure, though, if just changing the directive is enough. Does there need to alternative code for BCB? {Building oggenc} The DSP files for oggenc have a number of absolute paths, like: # ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I "c:\src\ogg\include" /I &...