Просмотр исходного кода

Merge pull request #286 from yuriks/msvc-fix

Comment out empty arrays causing compile errors in MSVC
bunnei 11 лет назад
Родитель
Сommit
cdfa7157eb
2 измененных файлов с 8 добавлено и 6 удалено
  1. 4 3
      src/core/hle/service/am_app.cpp
  2. 4 3
      src/core/hle/service/cecd_u.cpp

+ 4 - 3
src/core/hle/service/am_app.cpp

@@ -11,13 +11,14 @@
 
 namespace AM_APP {
 
-const Interface::FunctionInfo FunctionTable[] = {
-};
+// Empty arrays are illegal -- commented out until an entry is added.
+//const Interface::FunctionInfo FunctionTable[] = { };
+
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 // Interface class
 
 Interface::Interface() {
-    Register(FunctionTable, ARRAY_SIZE(FunctionTable));
+    //Register(FunctionTable, ARRAY_SIZE(FunctionTable));
 }
 
 } // namespace

+ 4 - 3
src/core/hle/service/cecd_u.cpp

@@ -11,13 +11,14 @@
 
 namespace CECD_U {
 
-const Interface::FunctionInfo FunctionTable[] = {
-};
+// Empty arrays are illegal -- commented out until an entry is added.
+//const Interface::FunctionInfo FunctionTable[] = { };
+
 ////////////////////////////////////////////////////////////////////////////////////////////////////
 // Interface class
 
 Interface::Interface() {
-    Register(FunctionTable, ARRAY_SIZE(FunctionTable));
+    //Register(FunctionTable, ARRAY_SIZE(FunctionTable));
 }
 
 } // namespace