diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-03-29 23:10:38 +0800 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-03-29 23:10:38 +0800 |
commit | e8d27a6f70969fefc9b9897cc607b81bfd8bd06f (patch) | |
tree | 4475de960d304389ddeb1621c9b3b078e0ba2252 /modules | |
parent | 5162756fb4958bf9e63bc906bb7bb6af70b0dbe7 (diff) | |
download | gsoc2013-evolution-e8d27a6f70969fefc9b9897cc607b81bfd8bd06f.tar gsoc2013-evolution-e8d27a6f70969fefc9b9897cc607b81bfd8bd06f.tar.gz gsoc2013-evolution-e8d27a6f70969fefc9b9897cc607b81bfd8bd06f.tar.bz2 gsoc2013-evolution-e8d27a6f70969fefc9b9897cc607b81bfd8bd06f.tar.lz gsoc2013-evolution-e8d27a6f70969fefc9b9897cc607b81bfd8bd06f.tar.xz gsoc2013-evolution-e8d27a6f70969fefc9b9897cc607b81bfd8bd06f.tar.zst gsoc2013-evolution-e8d27a6f70969fefc9b9897cc607b81bfd8bd06f.zip |
[win32] Don't brew your own macro if glib has one suitable available
Diffstat (limited to 'modules')
-rw-r--r-- | modules/windows-sens/evolution-windows-sens.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/windows-sens/evolution-windows-sens.c b/modules/windows-sens/evolution-windows-sens.c index 1a24f8e8a8..b88cb6348a 100644 --- a/modules/windows-sens/evolution-windows-sens.c +++ b/modules/windows-sens/evolution-windows-sens.c @@ -189,8 +189,6 @@ struct ISensNetwork { #include <shell/e-shell.h> #include <e-util/e-extension.h> -#define NUM_ELEMENTS(x) (sizeof((x)) / sizeof((x)[0])) - /* 4E14FB9F-2E22-11D1-9964-00C04FBBB345 */ DEFINE_GUID(IID_IEventSystem, 0x4E14FB9F, 0x2E22, 0x11D1, 0x99, 0x64, 0x00, 0xC0, 0x4F, 0xBB, 0xB3, 0x45); @@ -489,7 +487,7 @@ windows_sens_constructed (GObject *object) unsigned i; - for (i=0; i<NUM_ELEMENTS(methods); i++) { + for (i=0; i<G_N_ELEMENTS(methods); i++) { res=CoCreateInstance (&CLSID_CEventSubscription, 0, CLSCTX_SERVER, &IID_IEventSubscription, (LPVOID*)&pEventSubscription); |