Mercurial > pidgin.yaz
changeset 18202:7df46d8bf114
Move the define in internal.h instead.
This requires all .c files to include internal.h before including the other
headers.
Perhaps we should add the define in CFLAGS instead, when necessary.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 19 Jun 2007 22:47:12 +0000 |
parents | af15bece7097 |
children | c23aef39f9bb |
files | libpurple/account.h libpurple/accountopt.c libpurple/cmds.c libpurple/imgstore.c libpurple/internal.h libpurple/mime.c libpurple/ntlm.c libpurple/request.c libpurple/roomlist.c libpurple/whiteboard.c |
diffstat | 10 files changed, 19 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/account.h Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/account.h Tue Jun 19 22:47:12 2007 +0000 @@ -31,10 +31,6 @@ #include <glib.h> #include <glib-object.h> -#ifndef G_GNUC_NULL_TERMINATED -#define G_GNUC_NULL_TERMINATED -#endif - typedef struct _PurpleAccountUiOps PurpleAccountUiOps; typedef struct _PurpleAccount PurpleAccount;
--- a/libpurple/accountopt.c Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/accountopt.c Tue Jun 19 22:47:12 2007 +0000 @@ -22,6 +22,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "internal.h" + #include "accountopt.h" #include "util.h"
--- a/libpurple/cmds.c Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/cmds.c Tue Jun 19 22:47:12 2007 +0000 @@ -22,6 +22,8 @@ #include <string.h> +#include "internal.h" + #include "account.h" #include "util.h" #include "cmds.h"
--- a/libpurple/imgstore.c Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/imgstore.c Tue Jun 19 22:47:12 2007 +0000 @@ -25,6 +25,8 @@ */ #include <glib.h> +#include "internal.h" + #include "dbus-maybe.h" #include "debug.h" #include "imgstore.h"
--- a/libpurple/internal.h Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/internal.h Tue Jun 19 22:47:12 2007 +0000 @@ -170,6 +170,10 @@ # endif #endif +#ifndef G_GNUC_NULL_TERMINATED +# define G_GNUC_NULL_TERMINATED +#endif + /* Safer ways to work with static buffers. When using non-static * buffers, either use g_strdup_* functions (preferred) or use * g_strlcpy/g_strlcpy directly. */
--- a/libpurple/mime.c Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/mime.c Tue Jun 19 22:47:12 2007 +0000 @@ -29,6 +29,8 @@ #include <glib/glist.h> #include <glib/gstring.h> +#include "internal.h" + /* this should become "util.h" if we ever get this into purple proper */ #include "debug.h" #include "mime.h"
--- a/libpurple/ntlm.c Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/ntlm.c Tue Jun 19 22:47:12 2007 +0000 @@ -25,6 +25,8 @@ #include <glib.h> #include <stdlib.h> +#include "internal.h" + #include "util.h" #include "ntlm.h" #include "cipher.h"
--- a/libpurple/request.c Tue Jun 19 21:58:56 2007 +0000 +++ b/libpurple/request.c Tue Jun 19 22:47:12 2007 +0000 @@ -22,6 +22,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include "internal.h" + #include "notify.h" #include "request.h" #include "debug.h"