Skip to content

Instantly share code, notes, and snippets.

@pyrocat101
Created October 24, 2013 03:26
Show Gist options
  • Save pyrocat101/7130833 to your computer and use it in GitHub Desktop.
Save pyrocat101/7130833 to your computer and use it in GitHub Desktop.
Quick n' dirty patch for Octave on Mavericks
diff --git a/src/DLD-FUNCTIONS/rand.cc b/src/DLD-FUNCTIONS/rand.cc
index 0602379..cdad2e2 100644
--- a/src/DLD-FUNCTIONS/rand.cc
+++ b/src/DLD-FUNCTIONS/rand.cc
@@ -26,11 +26,7 @@ along with Octave; see the file COPYING. If not, see
#endif
#include <ctime>
-#if defined (HAVE_UNORDERED_MAP)
#include <unordered_map>
-#elif defined (HAVE_TR1_UNORDERED_MAP)
-#include <tr1/unordered_map>
-#endif
#include <string>
#include "f77-fcn.h"
@@ -1032,11 +1028,7 @@ rand(). All permutations are equally likely.\n\
@end deftypefn")
{
-#ifdef USE_UNORDERED_MAP_WITH_TR1
-using std::tr1::unordered_map;
-#else
using std::unordered_map;
-#endif
int nargin = args.length ();
octave_value retval;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment