libpurple/plugins/helloworld.c

branch
soc.2013.gobjectification
changeset 34964
54ebd3dcae16
parent 34963
de6836a8b324
child 35026
fde23518e1e5
child 36801
70047858a8fd
--- a/libpurple/plugins/helloworld.c	Mon Sep 23 13:50:52 2013 +0530
+++ b/libpurple/plugins/helloworld.c	Mon Sep 23 14:03:05 2013 +0530
@@ -21,31 +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 <plugin.h>
-#include <version.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