Displaying 20 results from an estimated 1000 matches similar to: "Moving CPP hackery"
2012 Feb 04
2
Moving CPP hackery
JonY wrote:
> Looks like there are some missed defines in the test_libFLAC++. Attached
> patch fixes that.
Good one. Thanks.
> Also, wsock32 usage is deprecated, on Win7, wsock32 forwards everything
> to ws2_32, suggest changing to -lwsock32 to -lws2_32 in configure.ac.
> Additionally, using -lwsock32 on Cygwin is wrong. Fix in config.txt.
For that I think I'd prefer to
2012 Feb 04
0
Moving CPP hackery
On 2/4/2012 13:20, Erik de Castro Lopo wrote:
> Hi all, especially David Yeo and JonY,
>
> I've started moving compiler specific CPP hacker into a separate file
> at include/share/compat.h.
>
> Eventually I hope to be able to move all of the require CPP hackery
> for $random_compiler into this file and have any C file which needs
> any compiler specific tweak to
2012 Feb 04
0
flac-dev Digest, Vol 87, Issue 10
On Sun, Feb 5, 2012 at 1:30 AM, <flac-dev-request at xiph.org> wrote:
> Send flac-dev mailing list submissions to
> flac-dev at xiph.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.xiph.org/mailman/listinfo/flac-dev
> or, via email, send a message with subject or body 'help' to
> flac-dev-request at xiph.org
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
2012 Feb 09
2
[PATCH] Remove even more CPP hackery
> Dave Yeo wrote:
>> Yes that makes sense. Requiring a C99 compliant compiler seems quite
reasonable.
> Well I'm actually going to be even more reasonable than that. The only
bits of C99 that flac will really require is header file
> with C99 standard width integers (int8_t, uint8_t, int16_t etc). Erik
I would recommend including with the distribution a file for windows
2012 Feb 09
1
[PATCH] Remove even more CPP hackery
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/08/12 01:32 am, Erik de Castro Lopo wrote:
> Dave Yeo wrote:
>
>> Another try
>
> Actually there are still some issues with this patch, mainly
> around your changes to incluce/FLAC/ordinals.h. This file is a
> public header file and hence, your changes:
Sorry about that, forgot that it is a public header.
[...]
>
2012 Feb 09
1
[PATCH] Remove even more CPP hackery
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 09.02.2012 21:41, Ben Allison wrote:
>>> Dave Yeo wrote:
>>>> Yes that makes sense. Requiring a C99 compliant compiler
>>>> seems quite
>> reasonable.
>>> Well I'm actually going to be even more reasonable than that.
>>> The only
>> bits of C99 that flac will really require is
2012 Feb 07
2
[PATCH] Remove even more CPP hackery
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.
---
include/FLAC/ordinals.h | 17 +++++++++--------
src/flac/main.c | 2 +-
src/libFLAC/metadata_iterators.c | 2 +-
2012 Feb 05
2
[PATCH 2/2] OS/2 EMX natively uses AOUT so pass -f aout to NASM
Dave Yeo wrote:
> ---
> configure.ac | 1 +
Both applied (first with a minor tweak). Thanks.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
2012 Feb 05
1
[PATCH 2/2] OS/2 EMX natively uses AOUT so pass -f aout to NASM
JonY wrote:
> On 2/5/2012 13:30, Erik de Castro Lopo wrote:
> > Dave Yeo wrote:
> >
> >> ---
> >> configure.ac | 1 +
> >
> > Both applied (first with a minor tweak). Thanks.
> >
> > Erik
>
> Unfortunately, this steps on my patch. Updated patch attached. Cygwin
> really shouldn't be calling win32 API.
>
> On the
2012 Feb 08
0
[PATCH] Remove even more CPP hackery
Dave Yeo wrote:
> Another try
Actually there are still some issues with this patch, mainly around
your changes to incluce/FLAC/ordinals.h. This file is a public header
file and hence, your changes:
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 @@
2012 Feb 09
0
[PATCH] Remove even more CPP hackery
>> Dave Yeo wrote:
>>> Yes that makes sense. Requiring a C99 compliant compiler seems quite
> reasonable.
>> Well I'm actually going to be even more reasonable than that. The only
> bits of C99 that flac will really require is header file
>> with C99 standard width integers (int8_t, uint8_t, int16_t etc). Erik
>
> I would recommend including with the
2012 Feb 02
2
Git branch with compiling fixes for win32
JonY wrote:
> Attached patch builds without any warnings for MinGW.
Sorry JonY, that patch does not apply against current git master
which is here:
https://git.xiph.org/?p=flac.git;a=summary
Specifically I pulled out much of the "#ifdef _MSC_VER" printf stuff
in this commit:
https://git.xiph.org/?p=flac.git;a=commit;h=ce8a75134cace056f6c436d54b57bad1a1d93797
For example
2013 Mar 12
2
Can't cross-compile from git now.
Erik de Castro Lopo wrote:
> JonY wrote:
>
> > Please do a link time test instead, I am not getting this error and
> > would like to keep stack protector on.
>
> I'll write an m4 macro.
I have attampted to write a macro that reliably detects the availability
of stack smash protection.
I currently have two configurations where my detection says that SSP is
available
2013 Mar 17
2
Patch to add Unicode filename support for win32 flac
JonY wrote:
> On 3/17/2013 10:33, Janne Hyv?rinen wrote:
> > Here's a patch that makes MSVC compiled flac.exe able to use wildcards
> > and encode/decode files with Unicode characters in names. It may not be
> > the prettiest code but it fulfills its primary purpose.
> > I tried to alter FLAC code as little as possible. It replaces argv with
> > utf-8 encoded
2013 Mar 17
3
Patch to add Unicode filename support for win32 flac
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 17.03.2013 18:55, JonY wrote:
> On 3/17/2013 18:37, Erik de Castro Lopo wrote:
>> JonY wrote:
>>
>>> On 3/17/2013 10:33, Janne Hyv?rinen wrote:
>>>> Here's a patch that makes MSVC compiled flac.exe able to use
>>>> wildcards and encode/decode files with Unicode characters in
>>>>
2013 Mar 12
3
Can't cross-compile from git now.
On 3/13/2013 03:50, Dave Yeo wrote:
> On 03/12/13 12:39 pm, Erik de Castro Lopo wrote:
>> For the Linux -> Windows cross compile for instance, this detects
>> SSP as working, but when I compile it fails with:
>>
>> CC stream_encoder_framing.lo
>> CC window.lo
>> CCLD libFLAC.la
>> Creating library file:
2013 Mar 17
1
Patch to add Unicode filename support for win32 flac
JonY wrote:
> On 3/17/2013 23:01, LRN wrote:
> >> All those ifdefs will at least be confined rather than spread out
> >> through the code.
> > I did it plibc-style:
> >
> > in compat.h:
> > #if defined(_WIN32)
> > #define FOPEN grabbag__fopen_utf8_wrapper
> > #else
> > #define FOPEN fopen
> > #endif
> >
> > in
2012 Feb 05
2
[PATCH 1/2] OS/2 also needs "-no-undefined" to build a DLL
---
configure.ac | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 36ac6c6..32bdd5f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -103,9 +103,11 @@ esac
AC_SUBST(OBJ_FORMAT)
case "$host" in
- *-*-cygwin|*mingw*)
- # define this variable for enabling strict exports with libtool; for now, it's only supported by Win32
2013 Mar 12
3
Can't cross-compile from git now.
JonY wrote:
> What is your link test checking and how does it fail?
My m4 macro is really simple, TRY_LINK a simple program with the
stack protect CFLAGS:
AC_DEFUN([XIPH_GCC_STACK_PROTECTOR],
[AC_LANG_ASSERT(C)
AC_MSG_CHECKING([if $CC supports stack smash protection])
xiph_stack_check_old_cflags="$CFLAGS"
SSP_FLAGS="-fstack-protector --param ssp-buffer-size=4"