Skip to content
Snippets Groups Projects
  1. Jan 14, 2014
    • Ralph Giles's avatar
      Fix malloc_hook warning on glibc 2.17 and later. · 4784e071
      Ralph Giles authored
      In glib 2.17 the __malloc_ptr define was removed in favour
      of using void* directly. Our declaration of mhook using this
      type for the second argument therefore rightly generates a warning
      on modern systems, since the type is assumed to be an int, which
      is too narrow to hold a pointer on 64 bit architectures.
      
      Since it was only ever a define we could use an #ifndef to define
      __malloc_ptr ourselves. However we only use it once, so using void*
      in the signature directly is cleaner. This should cause no problems
      on older systems where it will match either the void* or the char*
      (for non __STDC__ code) the define resolved to.
      4784e071
  2. Nov 24, 2013
  3. Nov 22, 2013
  4. Nov 20, 2013
  5. Nov 19, 2013
  6. Nov 18, 2013
  7. Nov 17, 2013
  8. Nov 09, 2013
  9. Oct 28, 2013
    • Gregory Maxwell's avatar
      Replace "inline" with OPUS_INLINE. · 7830cf1b
      Gregory Maxwell authored
      Newer versions of MSVC are unhappy with the strategy of the build
       environment redefining "inline" (even though they don't support the
       actual keyword). Instead we define OPUS_INLINE to the right thing
       in opus_defines.h.
      
      This is the same approach we use for restrict.
      7830cf1b
  10. Oct 12, 2013
  11. Jun 30, 2013
  12. Jun 27, 2013
    • Jean-Marc Valin's avatar
      Big squashed commit of Garf's MSVC reorg: · 1975eead
      Jean-Marc Valin authored
      
      commit 77880655f652c54415e4b5f03b5984b951f5267b
      Author: Timothy B. Terriberry <tterribe@xiph.org>
      Date:   Wed Jun 26 12:23:53 2013 +0200
      
          Fix version.mk parsing in genversion.bat.
      
          This was broken by the changes in 0482c82f to make it work with spaces.
      
          CMD interprets the quotes to mean the argument to FOR is a string,
          not a file name. Instead, we expand the path to a short file name.
      
      Signed-off-by: default avatarGian-Carlo Pascutto <gcp@sjeng.org>
      
      commit 8e97847ecac3a04956747b117fefef14939cbcbe
      Merge: 0482c82 3c0aa8fc
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Wed Jun 26 12:19:41 2013 +0200
      
          Merge branch 'master' into msvc_reorg
      
      commit 0482c82fea6dd397a7d2ab50dc6cda4965278fc2
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Tue May 21 17:59:30 2013 +0200
      
          Make genversion.bat work in paths with spaces.
      
      commit 3648ec55b7511119735280fc49bc57c7a3b55d6a
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Tue May 21 17:42:14 2013 +0200
      
          Rework output & intermediate dirs for parallel build support.
      
      commit c367a0fcfcbf5551fb65d61365d9b832d7af2b38
      Merge: bafb1dd b518b56f
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Tue May 21 14:17:11 2013 +0200
      
          Merge branch 'master' into msvc_reorg
      
          Conflicts:
          	win32/VS2010/celt.vcxproj
          	win32/VS2010/opus.vcxproj
          	win32/VS2010/silk_common.vcxproj
          	win32/VS2010/silk_float.vcxproj
      
      commit bafb1dda3fcf6785decdfb42a1f934c7fab0c567
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Mon Mar 11 21:25:28 2013 +0100
      
          Fix two more files to not have the Platform Toolset explicitly set.
      
      commit c69c870201fec7461862fe79731a37866a1810f1
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Mon Mar 11 21:08:00 2013 +0100
      
          Add missing SILK MSVC project files.
      
      commit a0d41fb7f97558c8f812d500b9027c77907c37c0
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Fri Mar 8 15:00:51 2013 +0100
      
          Use the default toolset in the MSVC project files.
      
      commit 34aac5b2637ed38c5620f0d876e08db232849933
      Author: Gian-Carlo Pascutto <gcp@sjeng.org>
      Date:   Fri Mar 8 14:54:41 2013 +0100
      
          Move the MSVC project files outside the source tree.
      
          Bring the project structure more in line with the one in libogg.
      1975eead
  13. May 27, 2013
  14. Apr 06, 2013
  15. Mar 05, 2013
  16. Dec 06, 2012
  17. Dec 04, 2012
  18. Dec 03, 2012
    • Ralph Giles's avatar
      Remove MSVC incremental linking directives. · 124f69b0
      Ralph Giles authored
      This avoids linker errors with VS2010 of the form
          failure during conversion to COFF: invalid file or corrupt
          [c:\users\giles\opus\source\opus_demo.vcxproj]
      
      The problem does not occur if the project files are updated
      to build under VS2012.
      124f69b0
  19. Dec 01, 2012
  20. Nov 09, 2012
    • Ralph Giles's avatar
      Fix line endings on MSVC project files. · c55f4d8d
      Ralph Giles authored
      These files has unix line endings, while the other
      project files have dos line endings.
      
      I hoped this would fix the link error about corrupt
      or invalid files with these projects, but it doesn't.
      Running 'Update project files...' in the VS2012 IDE
      is a work around, but it just adds a <PlatformToolset>
      element to each <PropertyGroup> and a line ending at
      the end of the file.
      c55f4d8d
  21. Oct 30, 2012
  22. Oct 27, 2012
    • Gregory Maxwell's avatar
      Fix several issues with multistream argument validation. · de95da9b
      Gregory Maxwell authored
      As reported by Mark Warner opus_multistream_*_create were depending on
       the behavior of malloc(0) in order to correctly report some kinds of
       argument errors. Bad arguments could be incorrectly reported as
       allocation failures. This changes multistream to explicitly check the
       arguments like the single stream _create functions. The unit tests were
       enough to catch this on systems where malloc(0) returns NULL but didn't
       catch it on other systems because the later _init call would catch the
       bad arguments and trigger the correct error if and only if the malloc
       didn't return a null pointer.
      
      In multistream_encoder_init failures of the internal non-multistream
       init calls were not being caught and propagated. Decode didn't have
       this problem. This propagates the errors and adds additional tests
       (the multistream encoder api is sill under tested) that would have
       detected this error.
      
      Plus add some stronger tests for things like error==NULL for the _create
       functions that take a pointer for error output.
      de95da9b
  23. Oct 23, 2012
    • Emily Bowman's avatar
      Fix MSVC linker warnings · f77e86a2
      Emily Bowman authored
      
      Specify the correct debug runtime libraries for the test
      and demo executables to prevent mismatch warnings with
      the default runtime.
      
      Signed-off-by: default avatarRalph Giles <giles@mozilla.com>
      f77e86a2
    • Ralph Giles's avatar
      Include process.h for _getpid on windows. · 662ae9bb
      Ralph Giles authored
      Previously the test programmes happened to link because _getpid
      returns an int, which is the default prototype. Instead, include
      the appropriate header to supply a real declaration, fixing the
      associated warning.
      
      I moved the getpid->_getpid define to the site of the header
      inclusion to make clear what's going on, rather than have it
      floating in win32/config.h.
      662ae9bb
  24. Oct 11, 2012
  25. Sep 27, 2012
  26. Sep 26, 2012
  27. Aug 21, 2012
  28. Aug 09, 2012
  29. Aug 08, 2012
  30. Jul 16, 2012
    • gcp's avatar
      Make MSVC build work in parallel. · eeb7bd3d
      gcp authored and Gregory Maxwell's avatar Gregory Maxwell committed
      The (non-default) temporary & output dirs configured in the projects could
      cause issues when doing compilation on a multiprocessor machine. Cleaned
      this up a little to use the defaults, which makes that work again and
      doesn't make the output structure any worse. Also removed debug output for
      release binaries & a tiny whitespace fix.
      eeb7bd3d
  31. Jul 14, 2012
  32. Jul 13, 2012
  33. Jul 12, 2012
  34. Jul 11, 2012
Loading