It depends on the distance at which the picture is taken. According to Wikipedia:
If direct flash must be used, a good rule of thumb is to separate the flash from the lens by 1/20 of the distance of the camera to the subject. For example, if the subject is 2 meters (6 feet) away, the flash head should be at least 10 cm (4 inches) away from the lens.
2 meters is already pretty close for a portrait shot, and those cameras look like the distance between flash and lens is less than 10cm, so they'll probably still cause red eyes for all but extremely close shots.
To be exact, in order to avoid red eyes, you want the angle of reflection from the flash to the lens via the eye to be more than 2.5 degrees, which means an angular distance of at least 5 degrees:
But nowadays most cameras can emit a pre-flash that causes pupils to contract (reducing the effect) or even automatically remove red eyes in post-processing.