[freenos] r398 committed - Removed offsetof() from macro.h, as it is already defined in stddef.h

  • From: freenos@xxxxxxxxxxxxxx
  • To: freenos@xxxxxxxxxxxxx
  • Date: Mon, 18 Oct 2010 23:43:34 +0000

Revision: 398
Author: nieklinnenbank
Date: Mon Oct 18 16:39:27 2010
Log: Removed offsetof() from macro.h, as it is already defined in stddef.h

http://code.google.com/p/freenos/source/detail?r=398

Modified:
 /branches/scratch/include/macro.h

=======================================
--- /branches/scratch/include/macro.h   Sun Oct 10 16:06:55 2010
+++ /branches/scratch/include/macro.h   Mon Oct 18 16:39:27 2010
@@ -47,10 +47,6 @@
      (number) % (divisor) ?  \
     ((number) / (divisor)) + 1 : (number) / (divisor)

-/** Calculates offsets in data structures. */
-#define offsetof(TYPE, MEMBER) \
-    ((Size) &((TYPE *)0)->MEMBER)
-
 /**
  * Can be used to link a symbol inside a specific section.
  * @param s Section name.

Other related posts:

  • » [freenos] r398 committed - Removed offsetof() from macro.h, as it is already defined in stddef.h - freenos