Преглед изворни кода

Merge pull request #286 from yuriks/msvc-fix

Comment out empty arrays causing compile errors in MSVC
bunnei пре 11 година
родитељ
комит
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