lavu: add CHK_OFFS as AV_CHECK_OFFSET to check struct member offsets
[libav.git] / libavcodec / arm / asm-offsets.h
index 8999456..fdc33ce 100644 (file)
 #ifndef AVCODEC_ARM_ASM_OFFSETS_H
 #define AVCODEC_ARM_ASM_OFFSETS_H
 
 #ifndef AVCODEC_ARM_ASM_OFFSETS_H
 #define AVCODEC_ARM_ASM_OFFSETS_H
 
-#ifndef __ASSEMBLER__
-#include <stddef.h>
-#define CHK_OFFS(s, m, o) struct check_##o {    \
-        int x_##o[offsetof(s, m) == o? 1: -1];  \
-    }
-#endif
-
 /* MpegEncContext */
 #define Y_DC_SCALE               0xa8
 #define C_DC_SCALE               0xac
 /* MpegEncContext */
 #define Y_DC_SCALE               0xa8
 #define C_DC_SCALE               0xac