libpurple/plugins/helloworld.c

branch
soc.2013.gobjectification.plugins
changeset 36801
70047858a8fd
parent 36794
ab220f8db631
parent 34964
54ebd3dcae16
child 36906
729bdf55b919
--- a/libpurple/plugins/helloworld.c	Sun Sep 22 22:51:55 2013 +0530
+++ b/libpurple/plugins/helloworld.c	Mon Sep 23 14:09:28 2013 +0530
@@ -21,30 +21,8 @@
  *
  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-/* config.h may define PURPLE_PLUGINS; protect the definition here so that we
- * don't get complaints about redefinition when it's not necessary. */
-#ifndef PURPLE_PLUGINS
-# define PURPLE_PLUGINS
-#endif
-
-#include <glib.h>
-
-/* This will prevent compiler errors in some instances and is better explained in the
- * how-to documents on the wiki */
-#ifndef G_GNUC_NULL_TERMINATED
-# if __GNUC__ >= 4
-#  define G_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
-# else
-#  define G_GNUC_NULL_TERMINATED
-# endif
-#endif
-
-#include <notify.h>
-#include <plugins.h>
+/* This file defines PURPLE_PLUGINS and includes all the libpurple headers */
+#include <purple.h>
 
 /* This function is the callback for the plugin action we added. All we're
  * doing here is displaying a message. When the user selects the plugin

mercurial