mkncc.h 490 B

123456789101112
  1. #ifndef WASABI2_FOUNDATION_MKNCC_H
  2. #define WASABI2_FOUNDATION_MKNCC_H
  3. #pragma once
  4. // note: this is endian-incompatible with win32's MAKEFOURCC
  5. // otoh, it shows up nicely in a debug register ;)
  6. #define MK4CC(a, b, c, d) ( (((unsigned long)a)<<24)|(((unsigned long)b)<<16)|(((unsigned long)c)<<8)|((unsigned long)d) )
  7. #define MK3CC(b, c, d) ( (((unsigned long)b)<<16)|(((unsigned long)c)<<8)|((unsigned long)d) )
  8. #define MK2CC(c, d) ( (((unsigned long)c)<<8)|((unsigned long)d) )
  9. #endif