Skip to content

Instantly share code, notes, and snippets.

@brooss
Created May 27, 2013 21:50
Show Gist options
  • Select an option

  • Save brooss/5659254 to your computer and use it in GitHub Desktop.

Select an option

Save brooss/5659254 to your computer and use it in GitHub Desktop.
daala-encoder-example-mingw32-fix
diff --git a/examples/encoder_example.c b/examples/encoder_example.c
index cdfaacb..293db4e 100644
--- a/examples/encoder_example.c
+++ b/examples/encoder_example.c
@@ -32,7 +32,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
#if defined(_WIN32)
# include <fcntl.h>
# include <io.h>
-
+#endif
+#if defined(_MSC_VER)
static double rint(double _x){
return (int)(_x<0?_x-0.5:_x+0.5);
}
--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment