summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-04-02 22:36:10 +0200
committerHaru <haru@dotalux.com>2018-04-02 22:36:15 +0200
commit5d97abba7ee7c076eb18780e6779a45b8d006412 (patch)
treedd3b3bd080fce068070547810665bbd81c770705 /src/map/script.h
parentd89690fbdbaa5dc78f98d96ee91403e329c12af1 (diff)
downloadhercules-5d97abba7ee7c076eb18780e6779a45b8d006412.tar.gz
hercules-5d97abba7ee7c076eb18780e6779a45b8d006412.tar.bz2
hercules-5d97abba7ee7c076eb18780e6779a45b8d006412.tar.xz
hercules-5d97abba7ee7c076eb18780e6779a45b8d006412.zip
Rename script->sprintf() to script->sprintf_helper()
This prevents compile errors in HPMHooking in case sprintf is defined as a macro by the C library Fixes #2003 Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 2dc3b2327..ede786481 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -909,7 +909,7 @@ struct script_interface {
int (*buildin_mobuseskill_sub) (struct block_list *bl, va_list ap);
int (*cleanfloor_sub) (struct block_list *bl, va_list ap);
int (*run_func) (struct script_state *st);
- bool (*sprintf) (struct script_state *st, int start, struct StringBuf *out);
+ bool (*sprintf_helper) (struct script_state *st, int start, struct StringBuf *out);
const char *(*getfuncname) (struct script_state *st);
// for ENABLE_CASE_CHECK
unsigned int (*calc_hash_ci) (const char *p);