diff options
| author | Philipp Stephani | 2016-10-25 23:40:34 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2016-10-26 23:31:42 +0200 |
| commit | b075dc7c00e154bfc3c92aca4f24db68997e8a21 (patch) | |
| tree | 6453c416549fcc13f61a5cac949852813cdac4f2 /lib/libtask | |
| parent | a856316f18744ba936b507e37622b55786b27839 (diff) | |
| download | emacs-b075dc7c00e154bfc3c92aca4f24db68997e8a21.tar.gz emacs-b075dc7c00e154bfc3c92aca4f24db68997e8a21.zip | |
malloc is redefined by config.h
But we need to define emacs as preprocessor symbol, not just EMACS.
Diffstat (limited to 'lib/libtask')
| -rw-r--r-- | lib/libtask/taskimpl.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/libtask/taskimpl.h b/lib/libtask/taskimpl.h index 2b1dd8f9f5e..2b1e31cfc7b 100644 --- a/lib/libtask/taskimpl.h +++ b/lib/libtask/taskimpl.h | |||
| @@ -212,13 +212,3 @@ void deltask(Tasklist*, Task*); | |||
| 212 | 212 | ||
| 213 | extern Task *taskrunning; | 213 | extern Task *taskrunning; |
| 214 | extern int taskcount; | 214 | extern int taskcount; |
| 215 | |||
| 216 | |||
| 217 | #ifdef EMACS | ||
| 218 | #define malloc unexec_malloc | ||
| 219 | #define realloc unexec_realloc | ||
| 220 | #define free unexec_free | ||
| 221 | void *unexec_malloc (size_t size); | ||
| 222 | void *unexec_realloc (void *old_ptr, size_t new_size); | ||
| 223 | void unexec_free (void *ptr); | ||
| 224 | #endif | ||