1
0
Эх сурвалжийг харах

Merge topic 'fix-tests-for-gcc-4.7'

b21cb9f Tests/ObjC++: Use standard <iostream> header
7fa8e53 Tests/X11: Add missing include <stdlib.h> for 'rand'
David Cole 13 жил өмнө
parent
commit
d8627aa5b9

+ 2 - 1
Tests/ObjC++/objc++.mm

@@ -1,5 +1,6 @@
-#import <iostream.h>
 #import <Cocoa/Cocoa.h>
+#import <iostream>
+using namespace std;
 
 int main()
 {

+ 1 - 0
Tests/X11/HelloWorldX11.cxx

@@ -15,6 +15,7 @@
 #define MAIN_H 1
 
 #include <iostream>
+#include <stdlib.h>
 
 /* include the X library headers */
 #include <X11/Xlib.h>