Цитата(Палыч @ Jul 5 2011, 11:37)

Есть, называется он stdint.h
Спасибо!
Продолжаю перегнать проет из смесм win+iar в iar для avr. Наткнулся на такой кусок такого кода:
Код
#if !defined(CONFIG_H)
#define CONFIG_H 1
#include <main.h>
#define HW_VER 0x01 // hardware version
#define SW_VER 0x0004 // software version
// define EEPROM settings
__attribute__ ((section (".eeprom"))){
uint16_t deviceid = 0x0558;
}
__attribute__ ((section (".eeprom")))
uint8_t serial[] = "MSI245460711"; // store device serial
#endif /* !defined(CONFIG_H) */
При компиляции в старом проекте ошибок нету.
А в новом пректе следующие ошибки:
Error[Pe079]: expected a type specifier D:\forastr\Console\Console\My project\config\config.h 8
Error[Pe141]: unnamed prototyped parameters not allowed when body is present D:\forastr\Console\Console\My project\config\config.h 8
Warning[Pe177]: variable "deviceid" was declared but never referenced D:\forastr\Console\Console\My project\config\config.h 9
Error[Pe079]: expected a type specifier D:\forastr\Console\Console\My project\config\config.h 11
Error[Pe247]: function "__attribute__" has already been defined (at line 8) D:\forastr\Console\Console\My project\config\config.h 11
Error[Pe141]: unnamed prototyped parameters not allowed when body is present D:\forastr\Console\Console\My project\config\config.h 11
Error[Pe130]: expected a "{" D:\forastr\Console\Console\My project\config\config.h 12
Помогите,пожалуйста, разобраться с этим.