search for: _msc_ver

Displaying 20 results from an estimated 239 matches for "_msc_ver".

2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...celt/float_cast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/celt/float_cast.h b/celt/float_cast.h index ede6574..4892e2c 100644 --- a/celt/float_cast.h +++ b/celt/float_cast.h @@ -90,14 +90,14 @@ #include <math.h> #define float2int(x) lrint(x) -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM) #include <xmmintrin.h> __inline long int float2int(float...
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...>> diff --git a/celt/float_cast.h b/celt/float_cast.h >> index ede6574..4892e2c 100644 >> --- a/celt/float_cast.h >> +++ b/celt/float_cast.h >> @@ -90,14 +90,14 @@ >> #include <math.h> >> #define float2int(x) lrint(x) >> >> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || >> defined (_WIN64)) >> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || >> defined (_WIN64)) && !defined(_M_ARM) >> #include <xmmintrin.h> >>...
2014 Nov 06
2
[PATCH] float_cast: Fix MSVC ARM build
...;> index ede6574..4892e2c 100644 > >>> --- a/celt/float_cast.h > >>> +++ b/celt/float_cast.h > >>> @@ -90,14 +90,14 @@ > >>> #include <math.h> > >>> #define float2int(x) lrint(x) > >>> > >>> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || > >>> defined (_WIN64)) > >>> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || > >>> defined (_WIN64)) && !defined(_M_ARM) > >>> #i...
2013 Mar 06
2
Updated MSVC patch
Those checks account for compiler changes/improvements introduced in Visual Studio 2010 that are not present in Visual Studio 2008. I will grab Visual Studio 2012 off of MSDN and make sure everything is OK there. -Ben > Hi Ben, > > Can you please remove the _MSC_VER >= 1600 check? > > _MSC_VER 1600 is set for Visual Studio 2010, which means > that Visual Studio 2012 will get a lot of errors because _MSC_VER > is defined as 1700. > > Cheers, > Cristian. > > On Wed, Mar 6, 2013 at 5:53 PM, Ben Allison <benski at winamp.com> wr...
2012 Feb 07
2
[PATCH] Remove even more CPP hackery
...2 +- 6 files changed, 14 insertions(+), 13 deletions(-) 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 unsigne...
2014 Nov 07
0
opus Digest, Vol 70, Issue 3
...--- celt/float_cast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/celt/float_cast.h b/celt/float_cast.h index ede6574..4892e2c 100644 --- a/celt/float_cast.h +++ b/celt/float_cast.h @@ -90,14 +90,14 @@ #include <math.h> #define float2int(x) lrint(x) -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM) #include <xmmintrin.h> __inline long int float2int(float...
2012 Feb 28
0
[LLVMdev] [patch] atomic functions on darwin
....csl.cornell.edu/~fang/ -------------- next part -------------- Index: cmake/modules/CheckAtomic.cmake =================================================================== --- cmake/modules/CheckAtomic.cmake (revision 151623) +++ cmake/modules/CheckAtomic.cmake (working copy) @@ -6,6 +6,9 @@ #ifdef _MSC_VER #include <windows.h> #endif +#ifdef __APPLE__ +#include <libkern/OSAtomic.h> +#endif int main() { #ifdef _MSC_VER volatile LONG val = 1; @@ -13,6 +16,12 @@ InterlockedCompareExchange(&val, 0, 1); InterlockedIncrement(&val); InterlockedDecr...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...insertions(+), 2 deletions(-) > > diff --git a/celt/float_cast.h b/celt/float_cast.h > index ede6574..4892e2c 100644 > --- a/celt/float_cast.h > +++ b/celt/float_cast.h > @@ -90,14 +90,14 @@ > #include <math.h> > #define float2int(x) lrint(x) > > -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) > +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || defined (_WIN64)) && !defined(_M_ARM) > #include <xmmintrin.h> > > __inline long int...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
..._cast.h b/celt/float_cast.h >>> index ede6574..4892e2c 100644 >>> --- a/celt/float_cast.h >>> +++ b/celt/float_cast.h >>> @@ -90,14 +90,14 @@ >>> #include <math.h> >>> #define float2int(x) lrint(x) >>> >>> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || >>> defined (_WIN64)) >>> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined (WIN64) || >>> defined (_WIN64)) && !defined(_M_ARM) >>> #include <xmmintrin...
2014 Nov 06
0
[PATCH] float_cast: Fix MSVC ARM build
...100644 > >>> --- a/celt/float_cast.h > >>> +++ b/celt/float_cast.h > >>> @@ -90,14 +90,14 @@ > >>> #include <math.h> > >>> #define float2int(x) lrint(x) > >>> > >>> -#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined > (WIN64) || > >>> defined (_WIN64)) > >>> +#elif (defined(_MSC_VER) && _MSC_VER >= 1400) && (defined > (WIN64) || > >>> defined (_WIN64)) && !defined(_M_ARM...
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 #endif To: #ifndef SIZE_MAX # ifndef SIZE_T_MAX # ifdef _MSC_VER # define SIZE_T_MAX UINT_MAX # elif defined(__MINGW_H) # define SIZE_T_MAX UINT_MAX # else # error # endif # endif # define SIZ...
2013 Apr 06
2
Circular preprocessor define with MSVC
Hi, in include/share/alloc.h there is this section: #ifndef SIZE_MAX # ifndef SIZE_T_MAX # ifdef _MSC_VER # define SIZE_T_MAX SIZE_MAX # else # error # endif # endif # define SIZE_MAX SIZE_T_MAX #endif So, if we are on MSVC and have neither SIZE_MAX nor SIZE_T_MAX, we'll define SIZE_T_MAX to mean SIZE_MAX and SIZE_MAX to mean SIZE_T_MAX. I'm afraid this won't work ... It is like...
2001 Apr 07
2
silent extern error (PR#898)
...rn "C" { #endif these two should be reversed. Its never a problem because builds aren't done against C++ compilers, but its still an error (just a low priority one). also, you could change that to #ifdef __cplusplus extern "C" { #endif #ifdef __MAIN__ #define extern #elif _MSC_VER #define extern __dllspec(dllimport) #endif with the corresponding change to the #undef region. This would allow people to develop for R using MSVC++ more easily. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at...
2012 Apr 17
1
[PATCH] Remove local_strtoull, windows has equivalent function _strtoui64
...-------------------------- 3 files changed, 10 insertions(+), 66 deletions(-) diff --git a/include/share/compat.h b/include/share/compat.h index e9ac958..ff5c8af 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -59,3 +59,11 @@ #include <inttypes.h> #endif +#if defined(_MSC_VER) +#define strtoll _strtoi64 +#endif + +#if defined(_MSC_VER) +#define restrict __restrict +#endif + diff --git a/src/flac/main.c b/src/flac/main.c index 80af14c..6f24e55 100644 --- a/src/flac/main.c +++ b/src/flac/main.c @@ -36,6 +36,7 @@ #include "FLAC/all.h" #include "share/allo...
2015 Feb 16
2
[LLVMdev] Do we still need LLVM_HAS_INITIALIZER_LISTS?
Currently, LLVM_HAS_INITIALIZER_LISTS is set based on __has_feature(cxx_generalized_initializers) && !defined(_MSC_VER) Based on the docs, we should be able to drop the _MSC_VER check now that we've moved to VS2013. Can somebody confirm that? The other problem is that GCC doesn't recognize __has_feature, so this is essentially only enabled for clang. If we're keeping this check it should really check...
2017 Jan 18
3
[PATCH] fix MSVC 2005/2008 build
...problem: > it moves definitions of all [u]intNN_t types from share/compat.h > into new file share/msvc2005_int.h and then includes this file > into all files (via "Force Includes" option in *.vcproj files). > > The definitions of these types are inside #if block with > _MSC_VER < 1600 condition, so these changes affect only MS Visual > Studio compilers with _MSC_VER < 1600 (i.e. MSVS 2005 and 2008). Thats a really great solution to this problem. Applied! Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo...
2013 Mar 06
0
Updated MSVC patch
Great. I need to correct my statement, the check for _MSC_VER <= 1600 was the culprit, like this case: #if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ #include <sys/types.h> /* for off_t */ #if _MSC_VER <= 1600 || defined __BORLANDC__ /* @@@ [2G limit] */ #ifndef fseeko #define fseeko fseek #ifndef fseeko #define fseeko fseek...
2013 Mar 06
1
Updated MSVC patch
This should be enough to fix it > Great. > > I need to correct my statement, the check for _MSC_VER <= 1600 > was the culprit, like this case: > > #if defined _MSC_VER || defined __BORLANDC__ || defined __MINGW32__ > #include <sys/types.h> /* for off_t */ > #if _MSC_VER <= 1600 || defined __BORLANDC__ /* @@@ [2G limit] */ > #ifndef fseeko > #define fseeko fseek &g...
2017 Feb 09
1
[PATCH] Fix compile with cygwin
...-D__MSVCRT_VERSION__=0x0601 $CPPFLAGS" os_is_windows=yes ;; 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_de...
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/include/FLAC/export.h index 2232b41..4b2418f 100644 --- a/include/FLAC/export.h +++ b/include/FLAC/ex...