Displaying 7 results from an estimated 7 matches for "__watcomc__".
2000 Dec 15
2
Ports
...===========================================
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:16
@@ -29,7 +29,7 @@
#endif
#ifndef __GNUC__
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__WATCOMC__)
# include <malloc.h>
# define rint(x) (floor((x)+0.5))
#endif
@@ -116,7 +116,7 @@
typedef int vorbis_fpu_control;
-#ifdef _WIN32
+#if defined(_WIN32) || defined(__WATCOMC__)
static __inline int vorbis_ftoi(double f){
int i;
===== CUT HERE ============================...
2001 Jan 31
1
Syntax error....
...want to fix this:
diff -x CVS -uwrN ../OggVorbis.clean/vorbis-tools/oggenc/platform.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!...
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:
2017 Jan 22
0
os/2 support using Watcom
...ilding with GCC flags -Zomf.
>>
>> OK, that can easily be added to configury, but..
>
> Please.
Will cook something for it,
>
>>
>>> Not sure about the assembly prefix as
>>> generally cdecl is correct for OS/2, perhaps test for defined
>>> (__WATCOMC__) && defined (__OS2__)
>>
>> Yeah: Default calling convention for Watcom is not __cdecl
>> it is, IIRC, __watcall and it doesn't prepend underscore to the
>> symbols
>
> Yes, why it should only be used by Watcom.
>
>>
>>>
>>> Will...
2017 Jan 22
0
os/2 support using Watcom
...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 flac8.dll link with Watcom with something like
diff --git a/include/FLAC/export.h b/include/FLAC/export.h
index d52f0bb..96d5422 100644
--- a/include/FLAC/export.h
+++ b/include/FLAC/export.h
@@ -69,6 +69,9 @@
#elif defined(FLAC__USE_VISIBILITY_AT...
2017 Jan 23
1
os/2 support using Watcom
...en perhaps,
diff --git a/include/FLAC/export.h b/include/FLAC/export.h
index d52f0bb..5d40421 100644
--- a/include/FLAC/export.h
+++ b/include/FLAC/export.h
@@ -66,6 +66,13 @@
#define FLAC_API __declspec(dllimport)
#endif
+#elif defined(__OS2__)
+#if defined(FLAC_API_EXPORTS) && defined(__WATCOMC__) && defined(__SW_BD)
+#define FLAC_API __declspec(__cdecl) __declspec(dllexport)
+#else
+#define FLAC_API __declspec(dllexport)
+#endif
+
#elif defined(FLAC__USE_VISIBILITY_ATTR)
#define FLAC_API __attribute__ ((visibility ("default")))
Another option is for the caller to defin...
2017 Jan 23
4
os/2 support using Watcom
On 01/22/17 02:00 PM, Ozkan Sezer wrote:
> Question: Does emx support __declspec(dllexport) so I can adjust
> these changes? Because the emx build of the dll seems to have
> exported_everything_ :(
GCC supports __declspec(dllexport) though it still needs a def file,
with no exports. Libtool doesn't currently and as flac uses libtool...
Dave