2009-10-01 Mathieu Taillefumier
* remove useless Eina_Log macros.
+
+2009-10-01 Vincent Torri
+
+ * Check the returned value of eet_init() in the binary.
+ * Use binary mode of fopen() in eet_main() for Windows compatibility
ERR("cannot read key %s\n", key);
exit(-1);
}
- f = fopen(out, "w");
+ f = fopen(out, "wb");
if (!f)
{
ERR("cannot open %s\n", out);
ERR("cannot open for reading: %s\n", file);
exit(-1);
}
- f = fopen(out, "w");
+ f = fopen(out, "wb");
if (!f)
{
ERR("cannot open %s\n", out);
ERR("cannot open for read+write: %s\n", file);
exit(-1);
}
- f = fopen(out, "r");
+ f = fopen(out, "rb");
if (!f)
{
ERR("cannot open %s\n", out);
ERR("cannot open for read+write: %s\n", file);
exit(-1);
}
- f = fopen(out, "r");
+ f = fopen(out, "rb");
if (!f)
{
ERR("cannot open %s\n", out);
int
main(int argc, char **argv)
{
- eet_init();
+ if (!eet_init())
+ return -1;
+
_eet_main_log_dom = eina_log_domain_register("Eet_Main",EINA_COLOR_CYAN);
if(_eet_main_log_dom < -1)
{