浏览代码

Fix linux version compiation error

louyihua 8 年之前
父节点
当前提交
54fa78dae2
共有 2 个文件被更改,包括 11 次插入11 次删除
  1. 1 1
      unix/Makefile
  2. 10 10
      unix/unix.cpp

+ 1 - 1
unix/Makefile

@@ -5,7 +5,7 @@ TARGET = sdlpal
 HOST =
 
 CFILES = $(wildcard ../adplug/*.c) $(wildcard ../libmad/*.c) $(wildcard ../liboggvorbis/src/*.c) $(wildcard ../*.c)
-CPPFILES = $(wildcard ../adplug/*.cpp) $(wildcard ../*.cpp)
+CPPFILES = $(wildcard ../adplug/*.cpp) $(wildcard ../*.cpp) $(wildcard ./*.cpp)
 OBJFILES = $(CFILES:.c=.o) $(CPPFILES:.cpp=.o)
 
 CCFLAGS = `sdl2-config --cflags` -g -Wall -O2 -fno-strict-aliasing -I../ -I../liboggvorbis/include -I../liboggvorbis/src -DPAL_CLASSIC -DPAL_HAS_PLATFORM_SPECIFIC_UTILS

+ 10 - 10
unix/unix.cpp

@@ -8,16 +8,16 @@
 
 #ifndef PAL_NO_LAUNCH_UI
 
-#include <Fl/Fl.h>
-#include <Fl/Fl_Window.h>
-#include <Fl/Fl_Box.h>
-#include <Fl/Fl_Button.h>
-#include <Fl/Fl_Check_Button.h>
-#include <Fl/Fl_Radio_Round_Button.h>
-#include <Fl/Fl_Hor_Value_Slider.h>
-#include <Fl/Fl_Input.h>
-#include <Fl/Fl_Int_Input.h>
-#include <Fl/Fl_Choice.h>
+#include <Fl/Fl.H>
+#include <Fl/Fl_Window.H>
+#include <Fl/Fl_Box.H>
+#include <Fl/Fl_Button.H>
+#include <Fl/Fl_Check_Button.H>
+#include <Fl/Fl_Radio_Round_Button.H>
+#include <Fl/Fl_Hor_Value_Slider.H>
+#include <Fl/Fl_Input.H>
+#include <Fl/Fl_Int_Input.H>
+#include <Fl/Fl_Choice.H>
 
 struct {
    Fl_Input* gamepath;