Merge lp:~zorba-coders/zorba/bug1052242 into lp:zorba

Proposed by Rodolfo Ochoa
Status: Merged
Approved by: Chris Hillery
Approved revision: 11041
Merged at revision: 11052
Proposed branch: lp:~zorba-coders/zorba/bug1052242
Merge into: lp:zorba
Diff against target: 158 lines (+16/-13)
8 files modified
src/compiler/expression/expr_manager.cpp (+1/-0)
src/compiler/expression/mem_manager.cpp (+1/-0)
src/precompiled/stdafx.h (+0/-4)
src/util/json_util.cpp (+1/-0)
src/util/uuid.cpp (+1/-0)
src/zorbamisc/config/stdint.h (+10/-8)
swig/csharp/CMakeLists.txt (+1/-1)
swig/csharp/zorba_api.i (+1/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug1052242
Reviewer Review Type Date Requested Status
Chris Hillery Approve
Juan Zacarias Approve
Review via email: mp+124823@code.launchpad.net

Commit message

Fixing all compilation errors for Windows:
- fixing precompiled headers
- fixing errors on CSharp binding
- fixing errors on stdint.h

Description of the change

Fixing all compilation errors for Windows:
- fixing precompiled headers
- fixing errors on CSharp binding
- fixing errors on stdint.h

To post a comment you must log in.
Revision history for this message
Juan Zacarias (juan457) :
review: Approve
Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug1052242-2012-09-19T16-02-04.637Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/compiler/expression/expr_manager.cpp'
2--- src/compiler/expression/expr_manager.cpp 2012-09-17 00:36:37 +0000
3+++ src/compiler/expression/expr_manager.cpp 2012-09-17 23:35:21 +0000
4@@ -14,6 +14,7 @@
5 * limitations under the License.
6 */
7
8+#include "stdafx.h"
9 #include "expr_manager.h"
10
11 #include "mem_manager.h"
12
13=== modified file 'src/compiler/expression/mem_manager.cpp'
14--- src/compiler/expression/mem_manager.cpp 2012-09-17 00:36:37 +0000
15+++ src/compiler/expression/mem_manager.cpp 2012-09-17 23:35:21 +0000
16@@ -14,6 +14,7 @@
17 * limitations under the License.
18 */
19
20+#include "stdafx.h"
21 #include "mem_manager.h"
22
23 #include <iostream>
24
25=== modified file 'src/precompiled/stdafx.h'
26--- src/precompiled/stdafx.h 2012-09-17 00:36:37 +0000
27+++ src/precompiled/stdafx.h 2012-09-17 23:35:21 +0000
28@@ -24,11 +24,8 @@
29 #include <memory>
30
31 #include <sstream>
32- #include <xfwrap>
33- #include <xfwrap1>
34 #include <istream>
35 #include <cstdio>
36- #include <xxshared>
37 #include <crtdefs.h>
38 #include <map>
39 #include <set>
40@@ -62,7 +59,6 @@
41 #include "zorbatypes/rclock.h"
42 #include "zorbatypes/schema_types.h"
43 #include "zorbatypes/timezone.h"
44- #include "zorbatypes/transcoder.h"
45 #include "zorbatypes/URI.h"
46 #include "zorbatypes/xerces_xmlcharray.h"
47 #include "zorbatypes/zorbatypes_decl.h"
48
49=== modified file 'src/util/json_util.cpp'
50--- src/util/json_util.cpp 2012-07-26 04:31:37 +0000
51+++ src/util/json_util.cpp 2012-09-17 23:35:21 +0000
52@@ -14,6 +14,7 @@
53 * limitations under the License.
54 */
55
56+#include "stdafx.h"
57 #include <iomanip>
58 #include <iostream>
59
60
61=== modified file 'src/util/uuid.cpp'
62--- src/util/uuid.cpp 2012-09-06 23:55:13 +0000
63+++ src/util/uuid.cpp 2012-09-17 23:35:21 +0000
64@@ -14,6 +14,7 @@
65 * limitations under the License.
66 */
67
68+#include "stdafx.h"
69 #include <zorba/config.h>
70
71 #include <cstdio> /* for sprintf(3) */
72
73=== modified file 'src/zorbamisc/config/stdint.h'
74--- src/zorbamisc/config/stdint.h 2012-09-17 00:36:37 +0000
75+++ src/zorbamisc/config/stdint.h 2012-09-17 23:35:21 +0000
76@@ -29,17 +29,17 @@
77 //
78 ///////////////////////////////////////////////////////////////////////////////
79
80+#ifndef _MSC_STDINT_H_ // [
81+#define _MSC_STDINT_H_
82+
83 #ifndef _MSC_VER // [
84 #include <stdint.h>
85 #else
86
87-#ifndef _MSC_STDINT_H_ // [
88-#define _MSC_STDINT_H_
89-
90 // Exclude this file for Visual Studio > 2010 (_MSC_VER == 1600 for Visual Studio 2010)
91-#if _MSC_VER <= 1600 // [
92+//#if _MSC_VER <= 1600 // [
93
94-#if _MSC_VER > 1000
95+#if (_MSC_VER > 1000)
96 #pragma once
97 #endif
98
99@@ -51,7 +51,7 @@
100 #if (_MSC_VER < 1300) && defined(__cplusplus)
101 extern "C++" {
102 #endif
103-# include <wchar.h>
104+#include <wchar.h>
105 #if (_MSC_VER < 1300) && defined(__cplusplus)
106 }
107 #endif
108@@ -60,7 +60,7 @@
109
110 // 7.18.1.1 Exact-width integer types
111 #ifndef U_HAVE_INT8_T
112-#if _MSC_VER < 1600 // Visual Studio 10 already defines this type
113+#if (_MSC_VER < 1600) // Visual Studio 10 already defines this type
114 typedef __int8 int8_t;
115 #endif //_MSC_VER < 1600
116 #define U_HAVE_INT8_T 1
117@@ -75,7 +75,9 @@
118 typedef unsigned __int64 uint64_t;
119
120 // 7.18.1.2 Minimum-width integer types
121+#if (_MSC_VER < 1600) // Visual Studio 10 already defines this type
122 typedef int8_t int_least8_t;
123+#endif
124 typedef int16_t int_least16_t;
125 typedef int32_t int_least32_t;
126 typedef int64_t int_least64_t;
127@@ -239,7 +241,7 @@
128
129 #endif // __STDC_CONSTANT_MACROS ]
130
131-#endif // _MSC_VER < 1600 ]
132+//#endif // _MSC_VER < 1600 ]
133
134 #endif // _MSC_STDINT_H_ ]
135
136
137=== modified file 'swig/csharp/CMakeLists.txt'
138--- swig/csharp/CMakeLists.txt 2012-09-17 00:36:37 +0000
139+++ swig/csharp/CMakeLists.txt 2012-09-17 23:35:21 +0000
140@@ -32,7 +32,7 @@
141
142 FILE(GLOB ZORBA_API_HEADERS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/../" "${CMAKE_CURRENT_SOURCE_DIR}/../*.h")
143 FOREACH(ZORBA_API_HEADER ${ZORBA_API_HEADERS})
144- CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/../${ZORBA_API_HEADER}" "${CMAKE_CURRENT_BINARY_DIR}/${ZORBA_API_HEADER}" COPYONLY)
145+ CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/../${ZORBA_API_HEADER}" "${CMAKE_CURRENT_BINARY_DIR}/${ZORBA_API_HEADER}")
146 ENDFOREACH(ZORBA_API_HEADER ${ZORBA_API_HEADERS})
147
148 IF (MSVC_IDE)
149
150=== modified file 'swig/csharp/zorba_api.i'
151--- swig/csharp/zorba_api.i 2012-07-30 20:09:08 +0000
152+++ swig/csharp/zorba_api.i 2012-09-17 23:35:21 +0000
153@@ -14,4 +14,5 @@
154 * limitations under the License.
155 */
156
157+%include "std_string.i"
158 %include ../zorba_api.i

Subscribers

People subscribed via source and target branches