diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-20 22:10:42 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-01-20 22:10:42 (GMT) |
| commit | 4949a5eac05339a4a82280588c97e948f134dfcb (patch) | |
| tree | 3678fd10dda234d5888bae73f56169b23564649c /src | |
| parent | c8073657fcbfd1bfa72538d7babe4964857e7101 (diff) | |
| download | powder-4949a5eac05339a4a82280588c97e948f134dfcb.zip powder-4949a5eac05339a4a82280588c97e948f134dfcb.tar.gz | |
Fix case for header files
Diffstat (limited to 'src')
| -rw-r--r-- | src/Misc.cpp | 12 | ||||
| -rw-r--r-- | src/elements/watr.cpp | 2 | ||||
| -rw-r--r-- | src/simulation/Air.cpp | 2 | ||||
| -rw-r--r-- | src/simulation/Simulation.cpp | 2 | ||||
| -rw-r--r-- | src/simulation/Simulation.h | 2 |
5 files changed, 7 insertions, 13 deletions
diff --git a/src/Misc.cpp b/src/Misc.cpp index 44770d1..a6ac711 100644 --- a/src/Misc.cpp +++ b/src/Misc.cpp @@ -4,13 +4,9 @@ #include <regex.h> #include <sys/types.h> #include <math.h> -#include "misc.h" #include "Config.h" -//#include "interface.h" -//#include "graphics.h" -//#include "powder.h" -//#include <icondoc.h> -//#include <update.h> +#include "Misc.h" +#include "icondoc.h" #if defined WIN32 #include <shlobj.h> #include <shlwapi.h> @@ -47,7 +43,7 @@ char *exe_name(void) } res = 1; #else - char fn[64], *name=malloc(64); + char fn[64], *name=(char *)malloc(64); size_t max=64, res; sprintf(fn, "/proc/self/exe"); memset(name, 0, max); @@ -544,7 +540,7 @@ int register_extension() "Comment=Physics sandbox game\n" "MimeType=application/vnd.powdertoy.save;\n" "NoDisplay=true\n"; - char *desktopfiledata = malloc(strlen(desktopfiledata_tmp)+strlen(currentfilename)+100); + char *desktopfiledata = (char *)malloc(strlen(desktopfiledata_tmp)+strlen(currentfilename)+100); strcpy(desktopfiledata, desktopfiledata_tmp); strappend(desktopfiledata, "Exec="); strappend(desktopfiledata, currentfilename); diff --git a/src/elements/watr.cpp b/src/elements/watr.cpp index b44fa22..9451a82 100644 --- a/src/elements/watr.cpp +++ b/src/elements/watr.cpp @@ -1,4 +1,4 @@ -#include "simulation/element.h" +#include "simulation/Element.h" int update_WATR(UPDATE_FUNC_ARGS) { int r, rx, ry; diff --git a/src/simulation/Air.cpp b/src/simulation/Air.cpp index 2d8d1b5..b3826ab 100644 --- a/src/simulation/Air.cpp +++ b/src/simulation/Air.cpp @@ -3,7 +3,7 @@ #include "Air.h" //#include <powder.h> //#include <defines.h> -#include "gravity.h" +#include "Gravity.h" /*float kernel[9]; diff --git a/src/simulation/Simulation.cpp b/src/simulation/Simulation.cpp index a1a785a..96b9d44 100644 --- a/src/simulation/Simulation.cpp +++ b/src/simulation/Simulation.cpp @@ -1,13 +1,11 @@ #include <cstdlib> #include <math.h> -#define _cplusplus #include "Config.h" #include "Simulation.h" #include "Elements.h" #include "ElementFunctions.h" #include "Air.h" #include "Gravity.h" -//#include "powder.h" void Simulation::clear_area(int area_x, int area_y, int area_w, int area_h) { diff --git a/src/simulation/Simulation.h b/src/simulation/Simulation.h index b3c51af..969b030 100644 --- a/src/simulation/Simulation.h +++ b/src/simulation/Simulation.h @@ -12,7 +12,7 @@ #include "Renderer.h" #include "Graphics.h" #include "Elements.h" -#include "misc.h" +#include "Misc.h" #define CHANNELS ((int)(MAX_TEMP-73)/100+2) |
