[gjs/gnome-3-24] arg: Include headers for std::abs()



commit a225d1f3c561c5ca1b023c8c7f446a88d8ff0c45
Author: Tom Schoonjans <Tom Schoonjans me com>
Date:   Mon Apr 24 22:42:28 2017 -0700

    arg: Include headers for std::abs()
    
    Required for compiling with clang on macOS.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=780350

 gi/arg.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gi/arg.cpp b/gi/arg.cpp
index 3c3af34..6f211a5 100644
--- a/gi/arg.cpp
+++ b/gi/arg.cpp
@@ -23,6 +23,9 @@
 
 #include <config.h>
 
+#include <cstdlib>
+#include <cmath>
+
 #include "arg.h"
 #include "gtype.h"
 #include "object.h"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]