]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/libbfd-in.h
Don't include libbfd.h outside of bfd, part 1
[thirdparty/binutils-gdb.git] / bfd / libbfd-in.h
index 8644d8d045e48db30a0897b2858f12c7495ca00c..cde3aad6c0a235bb176e1af8136984f91ad82cd2 100644 (file)
 extern "C" {
 #endif
 
-/* Align an address upward to a boundary, expressed as a number of bytes.
-   E.g. align to an 8-byte boundary with argument of 8.  Take care never
-   to wrap around if the address is within boundary-1 of the end of the
-   address space.  */
-#define BFD_ALIGN(this, boundary)                                        \
-  ((((bfd_vma) (this) + (boundary) - 1) >= (bfd_vma) (this))             \
-   ? (((bfd_vma) (this) + ((boundary) - 1)) & ~ (bfd_vma) ((boundary)-1)) \
-   : ~ (bfd_vma) 0)
-
 /* If you want to read and write large blocks, you might want to do it
    in quanta of this amount */
 #define DEFAULT_BUFFERSIZE 8192