Skip to content

Instantly share code, notes, and snippets.

@metacollin
Created August 9, 2017 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metacollin/4c389e9f7361d556bf4e3bb8a7fd2c51 to your computer and use it in GitHub Desktop.
Save metacollin/4c389e9f7361d556bf4e3bb8a7fd2c51 to your computer and use it in GitHub Desktop.
diff --git a/delete.c b/delete.c
index 7128f9e..75d7476 100644
--- a/delete.c
+++ b/delete.c
@@ -684,8 +684,11 @@ static int undelete_one(void)
return 1;
}
-
+#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
+int _undelete(void)
+#else
int undelete(void)
+#endif
{
int group;
diff --git a/delete.h b/delete.h
index 0815880..7a3aa73 100644
--- a/delete.h
+++ b/delete.h
@@ -26,7 +26,11 @@ void delete_table(struct table *table);
void delete_loop(struct loop *loop);
void delete_frame(struct frame *frame);
void destroy(void);
+#if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
+int _undelete(void);
+#else
int undelete(void);
+#endif
void purge(void);
#endif /* !DELETE_H */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment