Skip to content
Browse files

Fixing preprocessor interaction with Cocoa and boost.Rand

  • Loading branch information...
1 parent 8b9b721 commit 327e02f3b308c91b24cee530463ee00d65c8bbbc @andrewfb andrewfb committed Mar 8, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 include/cinder/Rand.h
View
3 include/cinder/Rand.h
@@ -23,11 +23,14 @@
#pragma once
#pragma push_macro("nil")
+#pragma push_macro("Nil")
#undef nil
+#undef Nil
#include <boost/random.hpp>
#include <boost/random/uniform_int.hpp>
#include <boost/random/uniform_real.hpp>
#include <boost/random/mersenne_twister.hpp>
+#pragma pop_macro("Nil")
#pragma pop_macro("nil")
#include "cinder/Vector.h"

0 comments on commit 327e02f

Please sign in to comment.
Something went wrong with that request. Please try again.