Skip to content

Commit

Permalink
GCC fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kurta999 committed Jun 22, 2014
1 parent 077009d commit 09ebe0b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 22 deletions.
1 change: 1 addition & 0 deletions Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include <sys/mman.h>
#include <limits.h>
#include <string.h>
#include <algorithm>
#endif

#ifndef PAGESIZE
Expand Down
3 changes: 3 additions & 0 deletions Hooks.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#ifndef __YSF_HOOKS
#define __YSF_HOOKS

#include "SDK/amx/amx.h"
#include "SDK/plugincommon.h"

// Hopefully this will be optimised out
// Unfortunately I can't get ANY direct cast to work
// pointer_to_member seems like a very special structure
Expand Down
23 changes: 1 addition & 22 deletions Inlines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,25 +301,4 @@ BYTE GetWeaponSlot(BYTE weaponid)
return 12;
}
return 0;
}
/*
char *strdel(char *string, size_t first, size_t len)
{
char *pos0, *pos1;
if (string)
{
if (first < strlen(string))
{
for (pos0 = pos1 = string + first;
*pos1 && len;
++pos1, --len)
{
;
}
strcpy(pos0, pos1);
}
}
return string;
}
*/
}
1 change: 1 addition & 0 deletions Scripting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <dirent.h>
#include <fnmatch.h>
// #include <sys/times.h>
#include <algorithm>
#endif

#include <string.h>
Expand Down
1 change: 1 addition & 0 deletions main.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define OS_NAME "Windows"
#else
#define OS_NAME "Linux"
#include <algorithm>
#endif

#define PROJECT_NAME "YSF"
Expand Down

0 comments on commit 09ebe0b

Please # to comment.