search for: _declspec

Displaying 15 results from an estimated 15 matches for "_declspec".

Did you mean: __declspec
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
The following patch changes export.h so that the dllimport/dllexport attributes work with mingw/mingw-w64 and others: - changes _declspec keyword to __declspec: the former may not be defined by some toolchains. - changes the _MSC_VER condition to universally _WIN32: MSVC, as well as GCC supports this. Attached patch: declspec.diff Regards. -- O.S. -------------- next part -------------- diff --git a/include/FLAC/export.h b/inc...
2012 Dec 03
0
[PATCH 3/5] Hide symbols with gcc.
...ex e3bc51f..d3bd136 100644 --- a/include/FLAC++/export.h +++ b/include/FLAC++/export.h @@ -55,17 +55,22 @@ * \{ */ -#if defined(FLAC__NO_DLL) || !defined(_MSC_VER) +#if defined(FLAC__NO_DLL) #define FLACPP_API -#else - +#elif defined(_MSC_VER) #ifdef FLACPP_API_EXPORTS #define FLACPP_API _declspec(dllexport) #else #define FLACPP_API _declspec(dllimport) - #endif + +#elif defined(FLAC__USE_VISIBILITY_ATTR) +#define FLACPP_API __attribute__ ((visibility ("default"))) + +#else +#define FLACPP_API + #endif /* These #defines will mirror the libtool-based library version number, s...
2012 Mar 25
2
Trying to link against libFLAC_static.lib (windows)
...braries anywhere on my machine now except for that single libFLAC_static.lib that has been built. > > If not, you'd need to look into the headers, check where those problem > functions are defined. Finally, you'll need to trace back any macros > that might be potentially using __declspec(dllimport). Just to be sure, I went to export.h and exlicitly defined FLAC_API and commented out the lines #ifdef FLAC_API_EXPORTS #define FLAC_API _declspec(dllexport) #else #define FLAC_API _declspec(dllimport) I've so cleaned and rebuilt all my project files but still get the errors: 11&...
2014 May 04
0
Building FLAC with LTO
...h.orig 2013-05-26 09:30:33.924201900 +0000 +++ flac-1.3.0/include/FLAC/export.h 2014-05-03 09:11:50.799298400 +0000 @@ -59,11 +59,19 @@ #if defined(FLAC__NO_DLL) #define FLAC_API -#elif defined(_MSC_VER) +#elif defined(_MSC_VER) || defined(__MINGW32__) #ifdef FLAC_API_EXPORTS -#define FLAC_API _declspec(dllexport) +#if defined(__GNUC__) +#define FLAC_API __attribute__((dllexport)) +#else +#define FLAC_API __declspec(dllexport) +#endif #else -#define FLAC_API _declspec(dllimport) +#if defined(__GNUC__) +#define FLAC_API +#else +#define FLAC_API __declspec(dllimport) +#endif #endif #elif define...
2014 May 24
2
make dllimport/dllexport attributes work with mingw (and others)
...part -------------- diff --git a/include/FLAC/export.h b/include/FLAC/export.h index 2232b41..185c282 100644 --- a/include/FLAC/export.h +++ b/include/FLAC/export.h @@ -59,11 +59,11 @@ #if defined(FLAC__NO_DLL) #define FLAC_API -#elif defined(_MSC_VER) -#ifdef FLAC_API_EXPORTS -#define FLAC_API _declspec(dllexport) +#elif defined(_WIN32) +#if defined(FLAC_API_EXPORTS) || defined(DLL_EXPORT) +#define FLAC_API __declspec(dllexport) #else -#define FLAC_API _declspec(dllimport) +#define FLAC_API __declspec(dllimport) #endif #elif defined(FLAC__USE_VISIBILITY_ATTR) diff --git a/include/FLAC++/expor...
2012 Dec 03
4
[PATCH 1/5] Remove old GNU-stack sections from nasm files.
They are not needed since the section is defined in nasm.h. --- src/libFLAC/ia32/bitreader_asm.nasm | 4 ---- src/libFLAC/ia32/cpu_asm.nasm | 4 ---- src/libFLAC/ia32/fixed_asm.nasm | 4 ---- src/libFLAC/ia32/lpc_asm.nasm | 4 ---- src/libFLAC/ia32/stream_encoder_asm.nasm | 4 ---- 5 files changed, 20 deletions(-) diff --git
2001 Oct 17
2
win32sdk shared memory issue -- proposed change of code
...n developing under UNIX, after all... ...well -- almost, as mentioned, the "_cdeclspec(dllimport)" attribute is required, such that a modification of "vorbis/lib/registry.h" is required which would look like: #if defined(_MSC_VER) && defined(DLL_IMPORT) # define EXTERN _declspec(dllimport) extern #else # define EXTERN extern #endif EXTERN vorbis_func_time *_time_P[]; EXTERN vorbis_func_floor *_floor_P[]; EXTERN vorbis_func_residue *_residue_P[]; EXTERN vorbis_func_mapping *_mapping_P[]; I realize the aesthetics of having "EXTERN" instead of "e...
2004 Sep 10
6
OS X compile errors
I just tried to compile FLAC 1.0.5 beta1 under Apple's X11 v0.1 (released today) and it didn't work. The error message was: file_decoder.c: In function `_declspec': file_decoder.c:477: warning: unused parameter `dllimport' file_decoder.c:478: warning: unused parameter `FLAC__file_decoder_process_until_end_of_file' make[4]: *** [file_decoder.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-re...
2012 Mar 26
0
Trying to link against libFLAC_static.lib (windows)
...sting cleaning out all the temporary files too, not just the dll/lib end targets. >> >> If not, you'd need to look into the headers, check where those problem >> functions are defined. Finally, you'll need to trace back any macros >> that might be potentially using __declspec(dllimport). > > Just to be sure, I went to export.h and exlicitly defined FLAC_API and > commented out the lines > > #ifdef FLAC_API_EXPORTS > #define FLAC_API _declspec(dllexport) > #else > #define FLAC_API _declspec(dllimport) > > I've so cleaned and rebuilt a...
2006 Jan 26
0
[LLVMdev] VS2005 patch
...// Emit JMP opcode. > @@ -64,9 +69,6 @@ > "popl %ebp\n" > "ret\n"); > #else > - extern "C" void *_AddressOfReturnAddress(void); > - #pragma intrinsic(_AddressOfReturnAddress) > - > void X86CompilationCallback2(void); > > _declspec(naked) void X86CompilationCallback(void) { > -------------------------------------------------------------------------------- > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.c...
2006 Jan 26
4
[LLVMdev] VS2005 patch
OK, fixed the problem with the intrin.h header that doesn't exist in previous versions of VS... -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: JIT.patch URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060126/7e55b0d0/attachment.ksh>
2012 Mar 23
2
Trying to link against libFLAC_static.lib (windows)
Hi. I'm trying to get a project linking to libFLAC_static.lib but I get linker errors such as the following. 6>AudioDecoder.lib(CFlacDecoder.obj) : error LNK2019: unresolved external symbol __imp__FLAC__stream_decoder_process_until_end_of_metadata referenced in function "protected: int __thiscall CFlacDecoder::CreateDecoder(void)" (?CreateDecoder at CFlacDecoder@@IAEHXZ)
2004 Sep 10
0
OS X compile errors
...unix to the two assignments of OUR_CFLAGS_TAIL in configure. Josh --- Glenn <glenn@meaning.com> wrote: > > I just tried to compile FLAC 1.0.5 beta1 under Apple's X11 v0.1 > (released today) and it didn't work. The error message was: > > file_decoder.c: In function `_declspec': > file_decoder.c:477: warning: unused parameter `dllimport' > file_decoder.c:478: warning: unused parameter > `FLAC__file_decoder_process_until_end_of_file' > make[4]: *** [file_decoder.lo] Error 1 > make[3]: *** [all-recursive] Error 1 > make[2]: *** [all-recursive...
2014 Jun 27
0
[PATCH 5] underscore fixes
* The first patch replaces _declspec with __declspec. * The second patch replaces __wgetmainargs_ with __wgetmainargs_t and __wgetmainargs with wgetmainargs. Reason: names that begin with double underscore are reserved. -------------- next part -------------- A non-text attachment was scrubbed... Name: 5.1_declspec.patch Type: applic...
2006 Jan 26
2
[LLVMdev] VS2005 patch
...+69,6 @@ >> "popl %ebp\n" >> "ret\n"); >> #else >> - extern "C" void *_AddressOfReturnAddress(void); >> - #pragma intrinsic(_AddressOfReturnAddress) >> - >> void X86CompilationCallback2(void); >> >> _declspec(naked) void X86CompilationCallback(void) { >> > > > -------------------------------------------------------------------------------- > > > >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu...